Backup also the postgres db and paperless

This commit is contained in:
Andrea Ciceri 2024-10-17 23:21:58 +02:00
parent a8cc32d0e0
commit 4ffc922419
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -25,10 +25,21 @@ in
host host
}".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs"; }".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs";
services.postgresqlBackup = {
enable = true;
backupAll = true;
location = "/var/backup/postgresql";
};
environment.persistence."/persist".directories = [
config.services.postgresqlBackup.location
];
services.restic.backups.sisko = { services.restic.backups.sisko = {
paths = [ paths = [
"/persist" "/persist"
"/mnt/hd/immich" "/mnt/hd/immich"
"/mnt/hd/paperless"
]; ];
exclude = [ " /persist/var/lib/containers" ]; exclude = [ " /persist/var/lib/containers" ];
passwordFile = config.age.secrets.SISKO_RESTIC_PASSWORD.path; passwordFile = config.age.secrets.SISKO_RESTIC_PASSWORD.path;