From 934416d576dd9731e248e41eb3fc71a422848cf9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 12 Dec 2020 16:03:21 +0100 Subject: [PATCH] Replace znapzend with ZFS auto snapshot --- modules/datasync.nix | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/modules/datasync.nix b/modules/datasync.nix index 40ab717..428747f 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -80,33 +80,14 @@ ''; }; - # ZFS automatic snapshotting - services.znapzend = { + # ZFS automatic snapshots + services.zfs.autoSnapshot = { enable = true; - autoCreation = true; - features = { - compressed = true; - recvu = true; - }; - zetup = { - "vault/backups" = { - plan = "1day=>1hour,1month=>1day,1year=>1month"; - recursive = true; - mbuffer.enable = true; - }; - - "vault/syncthing" = { - plan = "1hour=>15min,1day=>15min,1month=>1day,1year=>1month"; - recursive = true; - mbuffer.enable = true; - }; - - "vault/git" = { - plan = "1hour=>15min,1day=>1hour,1month=>1day,1year=>1month"; - recursive = true; - mbuffer.enable = true; - }; - }; + frequent = 4; + hourly = 24; + daily = 7; + weekly = 4; + monthly = 12; }; }