fuuko: Enable full postgresql backup
This commit is contained in:
parent
a3c954fa01
commit
3a5568a136
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue