fix(backup): use plain restic unlock with || true instead of --remove-all
This commit is contained in:
parent
0ac58a3cb9
commit
8ff8088f84
|
|
@ -74,7 +74,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# B2: clear any stale lock before attempting (safe no-op if no lock exists)
|
# B2: clear any stale lock before attempting (safe no-op if no lock exists)
|
||||||
restic -r "b2:${B2_BUCKET}:" unlock --remove-all 2>&1 | tee -a "$LOG"
|
restic -r "b2:${B2_BUCKET}:" unlock 2>&1 | tee -a "$LOG" || true
|
||||||
run_and_notify "b2:${B2_BUCKET}:" "Backblaze B2" "desktop" "backblaze-b2"
|
run_and_notify "b2:${B2_BUCKET}:" "Backblaze B2" "desktop" "backblaze-b2"
|
||||||
|
|
||||||
echo "=== Backup complete $(date) ===" | tee -a "$LOG"
|
echo "=== Backup complete $(date) ===" | tee -a "$LOG"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue