diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 16:42:06 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 16:42:06 +0200 |
| commit | 47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d (patch) | |
| tree | 7a63e74d2592ac280f5cbfad16bb21da88816be2 | |
| parent | b4aa99bdf8f368601bed8aa2013d1161ae95f2bf (diff) | |
| download | nixos-47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d.tar nixos-47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d.tar.gz nixos-47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d.tar.bz2 nixos-47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d.tar.xz nixos-47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d.zip | |
More backups from odin
| -rw-r--r-- | odin.nix | 13 |
1 files changed, 12 insertions, 1 deletions
| @@ -2,7 +2,7 @@ | |||
| 2 | # your system. Help is available in the configuration.nix(5) man page | 2 | # your system. Help is available in the configuration.nix(5) man page |
| 3 | # and in the NixOS manual (accessible by running ‘nixos-help’). | 3 | # and in the NixOS manual (accessible by running ‘nixos-help’). |
| 4 | 4 | ||
| 5 | { config, pkgs, ... }: | 5 | { config, pkgs, lib, ... }: |
| 6 | 6 | ||
| 7 | { | 7 | { |
| 8 | imports = | 8 | imports = |
| @@ -156,7 +156,18 @@ | |||
| 156 | repo = "borg.munin:borg"; | 156 | repo = "borg.munin:borg"; |
| 157 | paths = [ | 157 | paths = [ |
| 158 | { VG = "raid6"; LV = "mail"; } | 158 | { VG = "raid6"; LV = "mail"; } |
| 159 | { VG = "raid6"; LV = "home"; } | ||
| 160 | { VG = "raid6"; LV = "media"; } | ||
| 161 | { VG = "raid6"; LV = "root"; } | ||
| 162 | { VG = "ssd-raid1"; LV = "root"; } | ||
| 159 | ]; | 163 | ]; |
| 164 | |||
| 165 | prune = lib.genAttrs (name: [ | ||
| 166 | "--keep-within 24H" | ||
| 167 | "--keep-daily 31" | ||
| 168 | "--keep-monthly 12" | ||
| 169 | "--keep-yearly -1" | ||
| 170 | ]) ["raid6/mail" "raid6/home" "raid6/media" "raid6/root" "ssd-raid1/root"]; | ||
| 160 | }; | 171 | }; |
| 161 | }; | 172 | }; |
| 162 | }; | 173 | }; |
