From f5976168435ff1b87237ec659d6ed70df2e95a17 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 18 Oct 2025 12:58:00 -0500 Subject: [PATCH] update new backups --- modules/homelab/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/homelab/default.nix b/modules/homelab/default.nix index 0562a8b..0903276 100644 --- a/modules/homelab/default.nix +++ b/modules/homelab/default.nix @@ -85,8 +85,16 @@ in paths = lib.flatten (lib.attrsets.mapAttrsToList (_: arg: arg.paths) config.system.backups.baks); compression = "auto,zstd"; startAt = "daily"; + group = "archives"; encryption.mode = "repokey"; encryption.passCommand = "cat ${config.sops.secrets."borg_passwd".path}"; + extraArgs = ["--verbose" "--list" "--filter AME" "--stats" "--show-rc" "--umask 0007"]; + prune.keep = { + within = "1d"; # Keep all archives from the last day + daily = 7; + weekly = 12; + monthly = -1; # Keep at least one archive for each month + }; }; sops.secrets = {