diff --git a/modules/services/borg-client.nix b/modules/services/borg-client.nix index a7d7230..b6bdf4e 100644 --- a/modules/services/borg-client.nix +++ b/modules/services/borg-client.nix @@ -11,6 +11,10 @@ in sopsFile = ../../secrets/${host}/borg.yaml; }; + environment.persistence."/persist".directories = [ + "/root/.cache/borg" # Otherwise the initial run of Borg is painfully slow + ]; + services.borgbackup.jobs.persist = { compression = "auto,zstd,10"; encryption = { @@ -31,7 +35,7 @@ in monthly = 12; }; repo = "borg@borg.vsinerva.fi:/persist/borg/${host}"; - startAt = "hourly"; + startAt = "*-*-* *:00/10:00"; }; }; }