From 4f01ae8acc5c1c1e8b7c0f4f64a857356086236a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 26 May 2020 18:23:54 +0100 Subject: [PATCH] prune on backup to brix --- nixos/common-services.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/common-services.nix b/nixos/common-services.nix index 0c36b599..69263938 100644 --- a/nixos/common-services.nix +++ b/nixos/common-services.nix @@ -37,6 +37,7 @@ repository = "rest:http://brix.local:8000/"; timerConfig = { OnCalendar = "hourly"; }; extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" ]; + pruneOpts = [ "--keep-daily 8" "--keep-weekly 5" "--keep-monthly 13" "--keep-yearly 16" ]; }; restic.backups.home-to-b2 = {