diff options
author | Wolfgang Müller | 2023-05-16 20:26:59 +0200 |
---|---|---|
committer | Wolfgang Müller | 2023-05-16 20:26:59 +0200 |
commit | 12ed26d1352c9b9278bb858c4e2b44021c5d8c70 (patch) | |
tree | 7a70f6bc03586f928a2a58ccd79ca10751532d5a | |
parent | 4078fc302313001b29057aa856e9b46ff659ebd7 (diff) | |
download | lifeboat-12ed26d1352c9b9278bb858c4e2b44021c5d8c70.tar.gz (sig) |
Continue execution if a sync target fails0.4.1
lifeboat runs with 'set -e', meaning it stops executing whenever a
command invoked by it fails. This means that the entire script stops if
rclone fails - potentially ignoring future sync targets.
Make sure we catch any failure on rclone's side so the script can
continue.
-rwxr-xr-x | lifeboat | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,7 +73,7 @@ sync_default() { continue fi - rclone sync --transfers 20 --fast-list "$RESTIC_REPOSITORY" "$target/$LIFEBOAT_REPO_NAME" + rclone sync --transfers 20 --fast-list "$RESTIC_REPOSITORY" "$target/$LIFEBOAT_REPO_NAME" || err "skipping upload to $target" done < config/sync } |