diff --git a/modules/datasync.nix b/modules/datasync.nix index 0c0d737..bbcae43 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -31,4 +31,19 @@ "force user" = "coace"; }; }; + + # ZFS automatic backup solution + services.znapzend = { + enable = true; + pure = true; + zetup."vault" = { + plan = "1h=>10min,1d=>1h,1w=>1d,1m=>1w,1y=>1m"; + recursive = true; + destinations.backup = { + host = "10.0.1.4"; + dataset = "shield/unit"; + plan = "1w=>1d,1m=>1w,1y=>1m"; + }; + }; + }; }