bicep: add backup service

This commit is contained in:
Oystein Kristoffer Tveit 2023-03-26 03:14:36 +02:00
parent f77a5e946f
commit 0e75e0a5b9
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 6 additions and 0 deletions

View File

@ -72,4 +72,10 @@
networking.firewall.allowedTCPPorts = [ 5432 ];
networking.firewall.allowedUDPPorts = [ 5432 ];
services.postgresqlBackup = {
enable = true;
location = "/var/lib/postgres/backups";
backupAll = true;
};
}