restic: Exclude /data/cache/

This commit is contained in:
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

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));