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";
|
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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue