From 240f1ede65a50109d2a78a946c304eae84feb6f1 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 3 Jan 2025 19:49:36 -0600 Subject: [PATCH] stagger after nightly snap and reduce random to 30m --- nixos/modules/nixos/lib.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/nixos/lib.nix b/nixos/modules/nixos/lib.nix index 1a955e1..bad9757 100644 --- a/nixos/modules/nixos/lib.nix +++ b/nixos/modules/nixos/lib.nix @@ -91,9 +91,9 @@ if builtins.hasAttr "remoteResticTemplate" options then options.remoteResticTemplate else null; # 2:05 daily backup with 3h random delay timerConfig = { - OnCalendar = "02:05"; + OnCalendar = "02:15"; # night snap is taken at 02:10 Persistent = true; - RandomizedDelaySec = "3h"; + RandomizedDelaySec = "30m"; }; # 7 daily, 5 weekly, 12 monthly backups pruneOpts = [