From 1f8869b3d6aed4acdbd9cab0b3312c9f5348fc08 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 6 Apr 2021 15:12:21 +0200 Subject: [PATCH] Enable automatic ZFS backups to remote server --- modules/datasync.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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"; + }; + }; + }; }