fuuko: Enable full postgresql backup

This commit is contained in:
Simon Bruder 2021-03-09 11:50:32 +01:00
parent a3c954fa01
commit 3a5568a136
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -46,6 +46,16 @@
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
users.users.nginx.extraGroups = [ "keys" ]; 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"; networking.hostName = "fuuko";
system.stateVersion = "20.09"; system.stateVersion = "20.09";