diff --git a/modules/datasync.nix b/modules/datasync.nix index ee188d6..724b849 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -1,22 +1,14 @@ { config, lib, pkgs, ... }: { - # ZFS automatic backup solution - services.znapzend = { + # ZFS automatic snapshots + services.zfs.autoSnapshot = { enable = true; - autoCreation = true; - features = { - compressed = true; - recvu = true; - }; - pure = true; - zetup = { - "syscea/stateful/root".plan = - "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; - - "syscea/stateful/home".plan = - "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; - }; + frequent = 0; + hourly = 24; + daily = 7; + weekly = 4; + monthly = 12; }; # Syncthing configuration