restic: Exclude /data/cache/

restic-rest-server
Simon Bruder 2020-10-22 21:59:05 +02:00
parent 621a91457c
commit 7931f1f3f5
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ let
# Docker
"/var/lib/docker/"
# Stuff I do not want to back up
"/data/cache/"
];
excludesFile = pkgs.writeText "exludes.txt" (builtins.concatStringsSep "\n" excludes);
maybePath = path: (lib.optional (builtins.pathExists path) (toString path));