From fa4a4180071bfd430e8cd3d533d46d2d2ea8314a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 11 Feb 2026 01:06:02 +0100 Subject: [PATCH] restic: add --retry-lock=5m to all backup jobs 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 --- hosts/ha1/configuration.nix | 1 + hosts/monitoring01/configuration.nix | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hosts/ha1/configuration.nix b/hosts/ha1/configuration.nix index ce96519..7700339 100644 --- a/hosts/ha1/configuration.nix +++ b/hosts/ha1/configuration.nix @@ -87,6 +87,7 @@ "--keep-monthly 6" "--keep-within 1d" ]; + extraOptions = [ "--retry-lock=5m" ]; }; # Open ports in the firewall. diff --git a/hosts/monitoring01/configuration.nix b/hosts/monitoring01/configuration.nix index a437e81..7f87ef7 100644 --- a/hosts/monitoring01/configuration.nix +++ b/hosts/monitoring01/configuration.nix @@ -83,6 +83,7 @@ "--keep-monthly 6" "--keep-within 1d" ]; + extraOptions = [ "--retry-lock=5m" ]; }; services.restic.backups.grafana-db = { @@ -100,6 +101,7 @@ "--keep-monthly 6" "--keep-within 1d" ]; + extraOptions = [ "--retry-lock=5m" ]; }; # Open ports in the firewall.