renge: Add postgresql backup
This commit is contained in:
parent
087e46fde8
commit
3a752b9a3d
|
@ -31,4 +31,14 @@
|
|||
80
|
||||
443
|
||||
];
|
||||
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
startAt = [ ]; # triggered by restic system backup
|
||||
location = "/var/lib/postgresql-backup";
|
||||
};
|
||||
systemd.services.restic-backups-system = {
|
||||
after = [ "postgresqlBackup.service" ];
|
||||
wants = [ "postgresqlBackup.service" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue