gwydion: backup more stuff

This commit is contained in:
Jez Cope 2022-07-25 21:56:59 +01:00
parent ca56f4d726
commit 1ec73e5bc8
1 changed files with 20 additions and 9 deletions

View File

@ -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;
};
};
}