From 1faa336925982e047ced8e6913bd655da0a034ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 15 Jan 2022 21:58:11 +0100 Subject: [PATCH] Add postgresql backup --- config/services/postgres.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/services/postgres.nix b/config/services/postgres.nix index b61a7557..5a34bd46 100644 --- a/config/services/postgres.nix +++ b/config/services/postgres.nix @@ -4,6 +4,10 @@ enableTCPIP = true; authentication = "host all all fd0d:a262:1fa6:e621::/64 md5"; }; + services.postgresqlBackup = { + enable = true; + compression = "none"; # the file system and restic both do compression + }; services.prometheus.exporters.postgres = { enable = true; user = "postgres";