fuuko: Enable full postgresql backup

pull/48/head
Simon Bruder 2021-03-09 11:50:32 +01:00
parent a3c954fa01
commit 3a5568a136
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,16 @@
networking.firewall.allowedTCPPorts = [ 80 443 ];
users.users.nginx.extraGroups = [ "keys" ];
services.postgresqlBackup = {
enable = true;
startAt = [ ]; # triggered by restic system backup
location = "/data/backup/postgresql";
};
systemd.services.restic-backups-system = {
after = [ "postgresqlBackup.service" ];
wants = [ "postgresqlBackup.service" ];
};
networking.hostName = "fuuko";
system.stateVersion = "20.09";