From 0e75e0a5b91d852e7f9e225d6ff6bbb842251ca8 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 26 Mar 2023 03:14:36 +0200 Subject: [PATCH] bicep: add backup service --- hosts/bicep/services/postgres.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/bicep/services/postgres.nix b/hosts/bicep/services/postgres.nix index 75ba8522..426d06f9 100644 --- a/hosts/bicep/services/postgres.nix +++ b/hosts/bicep/services/postgres.nix @@ -72,4 +72,10 @@ networking.firewall.allowedTCPPorts = [ 5432 ]; networking.firewall.allowedUDPPorts = [ 5432 ]; + + services.postgresqlBackup = { + enable = true; + location = "/var/lib/postgres/backups"; + backupAll = true; + }; }