summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-23 16:08:09 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-23 16:08:09 +0200
commit160ec1bf86cc1d171bf0ffc19aba604a179f15f8 (patch)
tree2932dc985751cf5a231951346c03ad1d8812bc03
parentf129fe34bf7fb114740f8d088e400bd74a97409f (diff)
downloadnixos-160ec1bf86cc1d171bf0ffc19aba604a179f15f8.tar
nixos-160ec1bf86cc1d171bf0ffc19aba604a179f15f8.tar.gz
nixos-160ec1bf86cc1d171bf0ffc19aba604a179f15f8.tar.bz2
nixos-160ec1bf86cc1d171bf0ffc19aba604a179f15f8.tar.xz
nixos-160ec1bf86cc1d171bf0ffc19aba604a179f15f8.zip
better borg archive prefixes
-rw-r--r--hel.nix14
-rw-r--r--odin.nix2
2 files changed, 2 insertions, 14 deletions
diff --git a/hel.nix b/hel.nix
index 475e0046..daaf0daa 100644
--- a/hel.nix
+++ b/hel.nix
@@ -527,20 +527,8 @@
527 527
528 services.borgbackup = { 528 services.borgbackup = {
529 snapshots = "btrfs"; 529 snapshots = "btrfs";
530 prefix = "automatic.yggdrasil.midgard.hel."; 530 prefix = "yggdrasil.midgard.hel.";
531 targets = { 531 targets = {
532 "odin" = {
533 repo = "borg.odin:/srv/backup/borg";
534 paths = [ "/home/gkleen" ];
535 prune = {
536 "/home/gkleen" =
537 [ "--keep-within" "24H"
538 "--keep-daily" "31"
539 "--keep-monthly" "12"
540 "--keep-yearly" "-1"
541 ];
542 };
543 };
544 "munin" = { 532 "munin" = {
545 repo = "borg.munin:borg"; 533 repo = "borg.munin:borg";
546 paths = [ "/home/gkleen" ]; 534 paths = [ "/home/gkleen" ];
diff --git a/odin.nix b/odin.nix
index cddbb5a4..14ea349b 100644
--- a/odin.nix
+++ b/odin.nix
@@ -163,7 +163,7 @@
163 163
164 services.borgbackup = { 164 services.borgbackup = {
165 snapshots = "lvm"; 165 snapshots = "lvm";
166 prefix = "automatic.yggdrasil.asgard.odin."; 166 prefix = "yggdrasil.asgard.odin.";
167 targets = { 167 targets = {
168 "munin" = { 168 "munin" = {
169 repo = "borg.munin:borg"; 169 repo = "borg.munin:borg";