From 5937065d0e3427024de1631cb83f4c2dcfc4c42a Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 21 Dec 2020 13:08:22 +0100 Subject: [PATCH] restic: Clean up excludes --- modules/restic.nix | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/modules/restic.nix b/modules/restic.nix index 5e23908..37ed378 100644 --- a/modules/restic.nix +++ b/modules/restic.nix @@ -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));