restic: Clean up excludes

restic-rest-server
Simon Bruder 2020-12-21 13:08:22 +01:00
parent 931c7ee91b
commit 5937065d0e
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 5 additions and 20 deletions

View File

@ -5,13 +5,12 @@ let
name = "${config.networking.hostName}-system";
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
excludes = [
# General
# Caches
"/home/*/Downloads/"
"/home/*/.cache/"
"/home/*/**/cache/"
"/home/*/.claws-mail/imapcache"
"/home/*/.local/share/Trash"
"/home/*/.local/share/nvim/"
"/home/*/.local/share/Trash" # some gui applications use it
"/data/cache/"
# Rust
"/home/*/**/target/debug/"
@ -23,25 +22,11 @@ let
"/home/*/.rustup/toolchains/"
"/home/*/.cargo"
# Python
"/home/*/.local/share/pyppeteer"
"/home/*/.local/share/virtualenvs/"
"/home/*/.platformio/"
# Node
"/home/*/**/.local-chromium"
# Project related
# Misc
"/home/*/mount"
"/home/*/projects/vapoursynth/data/"
"/home/*/projects/vapoursynth/out/"
"/home/*/projects/vapoursynth/src/"
# Docker
# Docker (state should be kept somewhere else)
"/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));