2
0
Fork 0

sh.zio.backup: prototyping

This commit is contained in:
Ducky 2024-04-01 21:29:11 +01:00
parent eb8521f791
commit 3fd25c3e59

View file

@ -175,8 +175,14 @@ function invoke_script() {
export restic_path export restic_path
export secrets_dir export secrets_dir
"$backup_scripts_dir/$backup_script_filename" set -o pipefail
exec 3>&1
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>&1 | tee /dev/fd/3)
echo "$?" echo "$?"
set +o pipefail
exec 3>&-
} }
function backup_files() { function backup_files() {