From c4fb78d2aa481f3c1b177f5b2a673ad0ec225516 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 31 Dec 2020 04:29:38 +0100 Subject: [PATCH] Move PostgreSQL backup service to periodic.nix --- modules/periodic.nix | 8 ++++++++ modules/webstack.nix | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index c8a6210..20021d6 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -5,6 +5,14 @@ let blocklist = "${stateDir}/dnsmasq.blacklist.txt"; in { + # PostgreSQL daily backups + services.postgresqlBackup = { + enable = true; + backupAll = true; + location = "/vault/backups/zion/databases"; + startAt = "*-*-* 05:15:00"; + }; + # Fetch hosts-blocklists daily systemd.services.download-dns-blocklist = { description = "Download hosts-blocklists"; diff --git a/modules/webstack.nix b/modules/webstack.nix index e2aa3cd..012561f 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -158,14 +158,6 @@ ''; }; - # PostgreSQL daily backups - services.postgresqlBackup = { - enable = true; - backupAll = true; - location = "/vault/backups/zion/databases"; - startAt = "*-*-* 05:15:00"; - }; - # Miniflux configuration services.miniflux = { enable = true;