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"; blocklist = "${stateDir}/dnsmasq.blacklist.txt";
in { in {
# PostgreSQL daily backups
services.postgresqlBackup = {
enable = true;
backupAll = true;
location = "/vault/backups/zion/databases";
startAt = "*-*-* 05:15:00";
};
# Fetch hosts-blocklists daily # Fetch hosts-blocklists daily
systemd.services.download-dns-blocklist = { systemd.services.download-dns-blocklist = {
description = "Download hosts-blocklists"; 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 # Miniflux configuration
services.miniflux = { services.miniflux = {
enable = true; enable = true;