From 1ec73e5bc88eaa1ace726e2e77b6eee600e6dbbf Mon Sep 17 00:00:00 2001 From: Jez Cope Date: Mon, 25 Jul 2022 21:56:59 +0100 Subject: [PATCH] gwydion: backup more stuff --- hosts/gwydion/backup.nix | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/hosts/gwydion/backup.nix b/hosts/gwydion/backup.nix index d4e6bfa..5f4cb15 100644 --- a/hosts/gwydion/backup.nix +++ b/hosts/gwydion/backup.nix @@ -12,13 +12,6 @@ let passCommand = "cat ${h}/Private/Keys/Borg/passphrase"; }; - prune.keep = { - within = "1w"; - daily = 14; - weekly = 4; - monthly = -1; - }; - extraInitArgs = "--make-parent-dirs"; environment = { BORG_RSH = "ssh -i /home/jez/.ssh/id_rsa_u275275"; @@ -28,10 +21,28 @@ let in { services.borgbackup.jobs = { general = lib.recursiveUpdate defaults { - paths = - [ "${h}/Documents" "${h}/Projects" "${h}/Reference" "/etc/nixos" ]; + paths = [ + "${h}/Documents" + "${h}/Projects" + "${h}/Reference" + "${h}/Notes" + "${h}/Web" + "/etc/nixos" + ]; repo = "${repoRoot}/Gwydion/General"; exclude = [ "target" ".build" ".sync" ".stfolder" ]; + + prune.keep = { + within = "1w"; + daily = 14; + weekly = 4; + monthly = -1; + }; + }; + mail = lib.recursiveUpdate defaults { + paths = [ "${h}/Maildir" "${h}/Archive" ]; + repo = "${repoRoot}/Gwydion/Mail"; + prune.keep.daily = 3; }; }; }