From 2c4db228272919f4b20d91f1bc05ec352604103a Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Wed, 15 Jan 2025 12:03:09 +0100 Subject: [PATCH] feat: exclude cache from backup --- hosts/common/optional/restic.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/common/optional/restic.nix b/hosts/common/optional/restic.nix index 2342911..9cac5fc 100644 --- a/hosts/common/optional/restic.nix +++ b/hosts/common/optional/restic.nix @@ -30,6 +30,11 @@ config.users.users.lander.home ]; + exclude = [ + "/var/cache" + "/home/*/.cache" + ]; + pruneOpts = [ "--keep-daily 7" "--keep-weekly 5"