From 68702a27da110853fe48d1c1394cee776e6a1d4b Mon Sep 17 00:00:00 2001 From: dadada Date: Wed, 21 Jun 2023 14:01:24 +0200 Subject: [PATCH] surgat: make postgressql backups --- nixos/surgat/configuration.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/surgat/configuration.nix b/nixos/surgat/configuration.nix index 3215645..a3b750c 100644 --- a/nixos/surgat/configuration.nix +++ b/nixos/surgat/configuration.nix @@ -1,6 +1,5 @@ { config , pkgs -, lib , ... }: let @@ -54,6 +53,13 @@ in }; }; + services.postgresqlBackup = { + enable = true; + backupAll = true; + compression = "zstd"; + location = "/var/backup/postgresql"; + }; + systemd.network = { enable = true; networks = {