From 5d07659242912e9f0818a91adbbc7f32be707abc Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Wed, 6 Mar 2024 21:57:11 -0600 Subject: [PATCH] fix: Exclude .stversions and .git --- hosts/nuc/backups.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/nuc/backups.nix b/hosts/nuc/backups.nix index 323371d..b02ceab 100644 --- a/hosts/nuc/backups.nix +++ b/hosts/nuc/backups.nix @@ -15,7 +15,7 @@ in { user = "emiller"; paths = [ "${config.users.users.emiller.home}/sync" - "${config.users.users.emiller.home}/archive" + # "${config.users.users.emiller.home}/archive" ]; pruneOpts = [ @@ -24,6 +24,11 @@ in { "--keep-monthly 12" ]; + exclude = [ + ".stversions" + "*/.git" + ]; + backupPrepareCommand = "${pkgs.curl}/bin/curl -m 10 --retry 5 https://hc-ping.com/${restic-backup-id}/start"; backupCleanupCommand = "${pkgs.curl}/bin/curl -m 10 --retry 5 https://hc-ping.com/${restic-backup-id}/$EXIT_STATUS"; };