From 0451746b3b814cc0f87307b997932f37b78fe496 Mon Sep 17 00:00:00 2001 From: Ducky Date: Tue, 22 Aug 2023 02:10:09 +0100 Subject: [PATCH] sh.zio.backup: forward exit code from restic --- usr/local/bin/sh.zio.backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/bin/sh.zio.backup b/usr/local/bin/sh.zio.backup index fa02498..d3c7ddc 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -75,12 +75,11 @@ function invoke_restic() { elif [[ $command == "self-update" ]]; then say warning "Command '$command' not supported. Not running" else - # TODO: Handle deadlocks (--retry-lock could go on forever) "$restic_path" \ --cache-dir "$cache_dir" \ --password-file "$restic_repo_passwd_file" \ --repo "$(cat $restic_repo_file)" \ - --retry-lock 1m \ + --retry-lock 1h \ $command $args fi } @@ -266,4 +265,5 @@ else arguments="${@:2}" say info "Running: $restic_path $command $arguments" invoke_restic $command $arguments + exit $? fi