From ab9f83015e6d526b3b9ac60085b0f48c0c01e8e4 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 26 Sep 2022 23:40:13 -0400 Subject: [PATCH] Backup postgres too --- machines/matrix/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/machines/matrix/configuration.nix b/machines/matrix/configuration.nix index 6bff932..dcc61e5 100644 --- a/machines/matrix/configuration.nix +++ b/machines/matrix/configuration.nix @@ -119,6 +119,14 @@ extraConfigFiles = [ config.sops.secrets."matrix-secrets.yaml".path ]; }; + # Backup postgres + services.postgresqlBackup = { + enable = true; + compression = "none"; + backupAll = true; + startAt = "OnCalendar=00/2:00"; + }; + # Configure the vhost for the domain services.nginx.virtualHosts = let