From eee3dde04f1ae4e095ee87d0390aec174af10cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 6 Feb 2026 01:07:55 +0100 Subject: [PATCH] restic: add randomized delay to backup timers Backups to the shared restic repository were all scheduled at exactly midnight, causing lock conflicts. Adding RandomizedDelaySec spreads them out over a 2-hour window to prevent simultaneous access. 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 fb754bc..dcb8133 100644 --- a/hosts/ha1/configuration.nix +++ b/hosts/ha1/configuration.nix @@ -76,6 +76,7 @@ timerConfig = { OnCalendar = "daily"; Persistent = true; + RandomizedDelaySec = "2h"; }; pruneOpts = [ "--keep-daily 7" diff --git a/hosts/monitoring01/configuration.nix b/hosts/monitoring01/configuration.nix index b14294e..3a95d73 100644 --- a/hosts/monitoring01/configuration.nix +++ b/hosts/monitoring01/configuration.nix @@ -72,6 +72,7 @@ timerConfig = { OnCalendar = "daily"; Persistent = true; + RandomizedDelaySec = "2h"; }; pruneOpts = [ "--keep-daily 7" @@ -88,6 +89,7 @@ timerConfig = { OnCalendar = "daily"; Persistent = true; + RandomizedDelaySec = "2h"; }; pruneOpts = [ "--keep-daily 7"