diff --git a/modules/backup-b2.nix b/modules/backup-b2.nix index aacde64..e887cfb 100644 --- a/modules/backup-b2.nix +++ b/modules/backup-b2.nix @@ -13,6 +13,8 @@ let "/var/lib/forgejo" # Git hosting (repos, avatars) "/var/lib/mautrix-slack" # Bridge state "/var/lib/maubot" # Bot data + "/var/lib/acme" # Let's Encrypt certificates + "/home" # User home directories ]; excludePatterns = [ @@ -20,6 +22,14 @@ let "*.pid" "*.log" "**/.git/objects/pack/*.tmp" # Git temp files + # Home directory caches (can be rebuilt) + "/home/*/.cache" + "/home/*/.npm/_cacache" + "/home/*/.bun/install/cache" + "/home/*/node_modules" + "/home/*/.nix-profile" + "/home/*/.nix-defexpr" + "/home/*/.local/share/Trash" ]; # Script to set up restic environment from sops secrets