diff options
| author | Sam Scholten | 2025-10-24 09:07:22 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-24 09:07:22 +1000 |
| commit | a59db227f0fb4e0a3521e2d9f90031645b8b5e1a (patch) | |
| tree | 4211ef5fe831fc5e405f1c3a9dd6ac7d08dfabe2 /restic_backup.sh | |
| parent | d8dec8bbb471dfca9fe0535edc0c2906c7f91740 (diff) | |
| download | drestic-a59db227f0fb4e0a3521e2d9f90031645b8b5e1a.tar.gz drestic-a59db227f0fb4e0a3521e2d9f90031645b8b5e1a.zip | |
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.
Diffstat (limited to 'restic_backup.sh')
| -rwxr-xr-x | restic_backup.sh | 2 |
1 files changed, 0 insertions, 2 deletions
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 \ |
