diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-23 16:08:09 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-23 16:08:09 +0200 |
commit | 160ec1bf86cc1d171bf0ffc19aba604a179f15f8 (patch) | |
tree | 2932dc985751cf5a231951346c03ad1d8812bc03 | |
parent | f129fe34bf7fb114740f8d088e400bd74a97409f (diff) | |
download | nixos-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.nix | 14 | ||||
-rw-r--r-- | odin.nix | 2 |
2 files changed, 2 insertions, 14 deletions
@@ -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" ]; |
@@ -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"; |