renge: Add postgresql backup

This commit is contained in:
Simon Bruder 2022-03-23 17:16:00 +01:00
parent 087e46fde8
commit 3a752b9a3d
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -31,4 +31,14 @@
80 80
443 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" ];
};
} }