From 482910aa81ee7c248785038dc965091ed8158b99 Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 5 May 2024 13:05:43 -0400 Subject: [PATCH] Add borg prune --- special/insertpclinux.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/special/insertpclinux.nix b/special/insertpclinux.nix index 13a307a..0f7aaf5 100644 --- a/special/insertpclinux.nix +++ b/special/insertpclinux.nix @@ -50,6 +50,13 @@ encryption.mode = "repokey-blake2"; encryption.passCommand = "cat ${config.age.secrets.borg.path}"; compression = "auto,zstd"; + prune.keep = { + within = "1d"; + daily = 10; + weekly = 4; + monthly = 2; + }; + readWritePaths = [ "/mnt/NAS-backup/insertpclinux-insert" ]; repo = "/mnt/NAS-backup/insertpclinux-insert"; user = "insert"; startAt = "daily";