okarin: Add postgresql backup
This commit is contained in:
parent
386b1a7ed7
commit
18832e12df
|
@ -34,4 +34,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" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue