From 666846c7178d4196b39b51fc198e75e8d9e6831c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Thu, 24 Jul 2025 11:09:59 +0300 Subject: [PATCH] Re-enable frequent borg backups --- modules/services/borg-client.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"; }; }; }