sh.zio.backup: add restic output to variable
parent
d9afc1f199
commit
b2a307f1b8
|
@ -80,11 +80,13 @@ function invoke_restic() {
|
||||||
attempts_delay=600
|
attempts_delay=600
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
"$restic_path" \
|
exec 3>&1
|
||||||
|
|
||||||
|
restic_out="$($restic_path" \
|
||||||
--cache-dir "$cache_dir" \
|
--cache-dir "$cache_dir" \
|
||||||
--password-file "$restic_repo_passwd_file" \
|
--password-file "$restic_repo_passwd_file" \
|
||||||
--repo "$(cat $restic_repo_file)" \
|
--repo "$(cat $restic_repo_file)" \
|
||||||
$command $args
|
$command $args | tee /dev/fd/3)"
|
||||||
|
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue