restic: Clean up excludes
This commit is contained in:
parent
931c7ee91b
commit
5937065d0e
|
@ -5,13 +5,12 @@ let
|
||||||
name = "${config.networking.hostName}-system";
|
name = "${config.networking.hostName}-system";
|
||||||
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
|
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
|
||||||
excludes = [
|
excludes = [
|
||||||
# General
|
# Caches
|
||||||
"/home/*/Downloads/"
|
"/home/*/Downloads/"
|
||||||
"/home/*/.cache/"
|
"/home/*/.cache/"
|
||||||
"/home/*/**/cache/"
|
"/home/*/**/cache/"
|
||||||
"/home/*/.claws-mail/imapcache"
|
"/home/*/.local/share/Trash" # some gui applications use it
|
||||||
"/home/*/.local/share/Trash"
|
"/data/cache/"
|
||||||
"/home/*/.local/share/nvim/"
|
|
||||||
|
|
||||||
# Rust
|
# Rust
|
||||||
"/home/*/**/target/debug/"
|
"/home/*/**/target/debug/"
|
||||||
|
@ -23,25 +22,11 @@ let
|
||||||
"/home/*/.rustup/toolchains/"
|
"/home/*/.rustup/toolchains/"
|
||||||
"/home/*/.cargo"
|
"/home/*/.cargo"
|
||||||
|
|
||||||
# Python
|
# Misc
|
||||||
"/home/*/.local/share/pyppeteer"
|
|
||||||
"/home/*/.local/share/virtualenvs/"
|
|
||||||
"/home/*/.platformio/"
|
|
||||||
|
|
||||||
# Node
|
|
||||||
"/home/*/**/.local-chromium"
|
|
||||||
|
|
||||||
# Project related
|
|
||||||
"/home/*/mount"
|
"/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/"
|
"/var/lib/docker/"
|
||||||
|
|
||||||
# Stuff I do not want to back up
|
|
||||||
"/data/cache/"
|
|
||||||
];
|
];
|
||||||
excludesFile = pkgs.writeText "exludes.txt" (builtins.concatStringsSep "\n" excludes);
|
excludesFile = pkgs.writeText "exludes.txt" (builtins.concatStringsSep "\n" excludes);
|
||||||
maybePath = path: (lib.optional (builtins.pathExists path) (toString path));
|
maybePath = path: (lib.optional (builtins.pathExists path) (toString path));
|
||||||
|
|
Loading…
Reference in a new issue