Move PostgreSQL backup service to periodic.nix

This commit is contained in:
coolneng 2020-12-31 04:29:38 +01:00
parent 4be986e43e
commit c4fb78d2aa
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 8 additions and 8 deletions

View File

@ -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";

View File

@ -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;