Backup also the postgres db and paperless
This commit is contained in:
parent
a8cc32d0e0
commit
4ffc922419
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue