From a59db227f0fb4e0a3521e2d9f90031645b8b5e1a Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Fri, 24 Oct 2025 09:07:22 +1000 Subject: Remove unsupported --retry-lock flags for restic 0.14.0 compatibility The --retry-lock flag was added in restic 0.17.0, but Debian 12 ships with restic 0.14.0. Removing these flags ensures compatibility with older restic versions while still maintaining functionality. --- restic_backup.sh | 2 -- 1 file changed, 2 deletions(-) (limited to 'restic_backup.sh') diff --git a/restic_backup.sh b/restic_backup.sh index b68d299..96b80dd 100755 --- a/restic_backup.sh +++ b/restic_backup.sh @@ -37,7 +37,6 @@ restic backup \ --exclude-file "${CONFIG_DIR}/excludes" \ --password-file "${RESTIC_PASSWORD_FILE}" \ --option rclone.timeout=20m \ - --retry-lock 5m \ --tag daily || { echo "Error: Restic backup failed." >&2 notify "Restic Backup ($(whoami)@$(hostname))" "Backup phase failed!" 8 @@ -55,7 +54,6 @@ if [ "$HOUR" -ge 2 ] && [ "$HOUR" -lt 4 ]; then --repo "${RESTIC_REPOSITORY}" \ --password-file "${RESTIC_PASSWORD_FILE}" \ --option rclone.timeout=20m \ - --retry-lock 5m \ --keep-daily 7 \ --keep-weekly 4 \ --keep-monthly 6 \ -- cgit v1.2.3