From b43103deb56ee8b08c612d1526190e7b7841f2bc Mon Sep 17 00:00:00 2001 From: etwas Date: Mon, 8 Dec 2025 14:00:30 +0100 Subject: [PATCH] feat: fix restic backup excludes --- home/essentials/restic.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/home/essentials/restic.nix b/home/essentials/restic.nix index a467801..84c5b6b 100644 --- a/home/essentials/restic.nix +++ b/home/essentials/restic.nix @@ -6,18 +6,23 @@ backups = { localbackup = { exclude = [ - "/home/*/.cache/*" - "/home/*/.local/share/libvirt/*" - "/home/*/.local/share/Steam/*" - "/home/*/.local/share/Trash/*" - "*/venv/*" - "*/.direnv/*" - "*/Android/*" + "/home/$USER/.cache" + "/home/$USER/.local/share/libvirt" + "/home/$USER/.local/share/Steam" + "/home/$USER/.local/share/Trash" + "/home/$USER/Android" + ".venv" + "venv" + ".direnv" + ".git" ]; initialize = true; paths = [ "/home" ]; + extraBackupArgs = [ + "--one-file-system" + ]; repository = "s3:https://s3.filmsli.de/restic-framework"; pruneOpts = [ "--keep-daily 7"