feat(shan): back up paperless

This commit is contained in:
Nydragon 2024-10-12 20:58:21 +02:00
parent d68c5a09fe
commit 8add0ecda8
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
4 changed files with 28 additions and 12 deletions

View file

@ -47,14 +47,11 @@
};
rsync-backup = {
enable = true;
sources = [
"/home/ny/Downloads"
"/home/ny/notes"
];
sources = [ "/home/ny/notes" ];
target = {
location = "backup";
location = "brontes-backup";
type = "rsyncd";
host = "shan";
host = "nihilus";
};
incremental.enable = true;
};

View file

@ -18,11 +18,12 @@
enable = true;
port = 9523;
openFirewall = true;
location = "/mnt/backups";
address = "100.64.0.6";
modules = [
{
name = "image-backup";
comment = "ftp export area";
name = "paperless-backup";
comment = "backups for paperless";
mode = "write";
}
{

View file

@ -14,6 +14,11 @@
fsType = "ext4";
};
fileSystems."/mnt/backups" = {
device = "/dev/disk/by-uuid/00ab5786-5a44-443f-bafa-2c3facf50a30";
fsType = "ext4";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;

View file

@ -63,11 +63,24 @@
};
};
services.tailscale = {
services = {
tailscale = {
enable = true;
isExitNode = true;
tags = [ "server" ];
};
rsync-backup = {
enable = true;
sources = [ "/var/lib/paperless" ];
target = {
location = "paperless-backup";
type = "rsyncd";
host = "nihilus";
};
incremental.enable = true;
};
};
};
services = {