From c46c1c580da6907b6f22ef745c10bf1f8beda303 Mon Sep 17 00:00:00 2001 From: nydragon Date: Wed, 12 Mar 2025 12:45:51 +0100 Subject: [PATCH] feat: general backup module for rsyncd --- hosts/nihilus/default.nix | 4 ++-- hosts/shan/default.nix | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/hosts/nihilus/default.nix b/hosts/nihilus/default.nix index 46bda08..bde7ba7 100644 --- a/hosts/nihilus/default.nix +++ b/hosts/nihilus/default.nix @@ -31,8 +31,8 @@ mode = "write"; } { - name = "brontes-backup"; - comment = "brontes's backup space"; + name = "shan"; + comment = "backups for shan"; mode = "write"; } { diff --git a/hosts/shan/default.nix b/hosts/shan/default.nix index e4ffaf4..063b953 100644 --- a/hosts/shan/default.nix +++ b/hosts/shan/default.nix @@ -89,6 +89,21 @@ rsync-backup = { enable = true; modules = [ + { + sources = [ + "/var/lib/paperless" + "/var/lib/radicale" + "/var/lib/navidrome" + "/var/lib/immich" + "/var/lib/freshrss" + ]; + target = { + location = "shan"; + type = "rsyncd"; + host = "nihilus"; + }; + incremental.enable = true; + } { sources = [ "/var/lib/paperless" ]; target = { @@ -143,7 +158,6 @@ }; incremental.enable = true; } - ]; }; };