From 4a5c599777cb8b8b2e5009e707a081fb5578d8a8 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 18 Oct 2022 00:08:58 +0200 Subject: [PATCH] jobs: prune old backups --- jobs.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jobs.nix b/jobs.nix index d82d35b..7c3a4ac 100644 --- a/jobs.nix +++ b/jobs.nix @@ -112,6 +112,10 @@ with lib; bup index "$dir" bup save -n postgresql "$dir" --strip-path=/tmp echo done + + echo pruning... + bup prune-older --keep-all-for 6m --keep-monthlies-for 2y --unsafe + echo done ''; };