From 968c334c1bba1e3ccbe194e209237318212e87f0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 15 Mar 2021 23:52:07 +0100 Subject: [PATCH] borg: prune files when backing up --- services/borg-backup.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/borg-backup.nix b/services/borg-backup.nix index 387a304..63aa427 100644 --- a/services/borg-backup.nix +++ b/services/borg-backup.nix @@ -54,6 +54,11 @@ in { environment.BORG_RSH = "ssh -i /root/borgbackup/ssh_key"; compression = "auto,lzma"; startAt = "daily"; + prune.keep = { + daily = 7; + weekly = 4; + monthly = 6; + }; }; }; }