sh.zio.backup: prototyping
This commit is contained in:
parent
eb8521f791
commit
3fd25c3e59
1 changed files with 7 additions and 1 deletions
|
@ -175,8 +175,14 @@ function invoke_script() {
|
|||
export restic_path
|
||||
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 "$?"
|
||||
|
||||
set +o pipefail
|
||||
exec 3>&-
|
||||
}
|
||||
|
||||
function backup_files() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue