From 47d0f0aaf0147dcd86f6edd3ff0a318d7648ac6d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 16:42:06 +0200 Subject: More backups from odin --- odin.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/odin.nix b/odin.nix index 98287d54..cf9cb687 100644 --- a/odin.nix +++ b/odin.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { imports = @@ -156,7 +156,18 @@ repo = "borg.munin:borg"; paths = [ { VG = "raid6"; LV = "mail"; } + { VG = "raid6"; LV = "home"; } + { VG = "raid6"; LV = "media"; } + { VG = "raid6"; LV = "root"; } + { VG = "ssd-raid1"; LV = "root"; } ]; + + prune = lib.genAttrs (name: [ + "--keep-within 24H" + "--keep-daily 31" + "--keep-monthly 12" + "--keep-yearly -1" + ]) ["raid6/mail" "raid6/home" "raid6/media" "raid6/root" "ssd-raid1/root"]; }; }; }; -- cgit v1.2.3