okarin: Add postgresql backup

This commit is contained in:
Simon Bruder 2022-03-03 12:51:15 +01:00
parent 386b1a7ed7
commit 18832e12df
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -34,4 +34,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" ];
};
}