From 74fa10f348907e287120125728b0a4eaadad37d3 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 11 Dec 2022 18:09:49 +0800 Subject: [PATCH] hosts/plover: enable PostgreSQL dump service --- hosts/plover/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/plover/default.nix b/hosts/plover/default.nix index b46b8874..6beaa0f0 100644 --- a/hosts/plover/default.nix +++ b/hosts/plover/default.nix @@ -190,6 +190,16 @@ in ]; }; + # With a database comes a dumping. + services.postgresqlBackup = { + enable = true; + compression = "zstd"; + compressionLevel = 11; + + # Start at every 3 days starting from the first day of the month. + startAt = "*-*-1/3"; + }; + # My code forge. services.gitea = { enable = true;