restic: add randomized delay to backup timers
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
2026-02-06 01:07:55 +01:00
parent 682b07b977
commit eee3dde04f
2 changed files with 3 additions and 0 deletions

View File

@@ -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"