aboutsummaryrefslogtreecommitdiffstats
path: root/lifeboat
diff options
context:
space:
mode:
authorWolfgang Müller2023-05-16 20:26:59 +0200
committerWolfgang Müller2023-05-16 20:26:59 +0200
commit12ed26d1352c9b9278bb858c4e2b44021c5d8c70 (patch)
tree7a70f6bc03586f928a2a58ccd79ca10751532d5a /lifeboat
parent4078fc302313001b29057aa856e9b46ff659ebd7 (diff)
downloadlifeboat-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.
Diffstat (limited to 'lifeboat')
-rwxr-xr-xlifeboat2
1 files changed, 1 insertions, 1 deletions
diff --git a/lifeboat b/lifeboat
index 2d88f9d..bb8284b 100755
--- a/lifeboat
+++ b/lifeboat
@@ -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
}