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; }; }