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 = { rsync-backup = {
enable = true; enable = true;
sources = [ sources = [ "/home/ny/notes" ];
"/home/ny/Downloads"
"/home/ny/notes"
];
target = { target = {
location = "backup"; location = "brontes-backup";
type = "rsyncd"; type = "rsyncd";
host = "shan"; host = "nihilus";
}; };
incremental.enable = true; incremental.enable = true;
}; };

View file

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

View file

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

View file

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