From 3a5568a136acd2dc0942ae2e274a58b0115b8bcb Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 9 Mar 2021 11:50:32 +0100 Subject: [PATCH] fuuko: Enable full postgresql backup --- machines/fuuko/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/machines/fuuko/configuration.nix b/machines/fuuko/configuration.nix index 5536e73..65196fa 100644 --- a/machines/fuuko/configuration.nix +++ b/machines/fuuko/configuration.nix @@ -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";