Move PostgreSQL backup service to periodic.nix
This commit is contained in:
parent
4be986e43e
commit
c4fb78d2aa
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue