restic: add --retry-lock=5m to all backup jobs
Some checks failed
Run nix flake check / flake-check (push) Failing after 23m42s

Prevents lock conflicts when multiple backup jobs targeting the same
repository run concurrently. Jobs will now retry acquiring the lock
every 10 seconds for up to 5 minutes before failing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-11 01:06:02 +01:00
parent 963e5f6d3c
commit fa4a418007
2 changed files with 3 additions and 0 deletions

View File

@@ -87,6 +87,7 @@
"--keep-monthly 6" "--keep-monthly 6"
"--keep-within 1d" "--keep-within 1d"
]; ];
extraOptions = [ "--retry-lock=5m" ];
}; };
# Open ports in the firewall. # Open ports in the firewall.

View File

@@ -83,6 +83,7 @@
"--keep-monthly 6" "--keep-monthly 6"
"--keep-within 1d" "--keep-within 1d"
]; ];
extraOptions = [ "--retry-lock=5m" ];
}; };
services.restic.backups.grafana-db = { services.restic.backups.grafana-db = {
@@ -100,6 +101,7 @@
"--keep-monthly 6" "--keep-monthly 6"
"--keep-within 1d" "--keep-within 1d"
]; ];
extraOptions = [ "--retry-lock=5m" ];
}; };
# Open ports in the firewall. # Open ports in the firewall.