Set up PostgreSQL with daily backups
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
php
|
||||
postgresql_11
|
||||
libressl
|
||||
wallabag
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
@@ -73,9 +74,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Generate dhparams
|
||||
security.dhparams = {
|
||||
enable = true;
|
||||
params = { nginx.bits = 2048; };
|
||||
};
|
||||
|
||||
# Enable PostgreSQL with daily backup
|
||||
services.postgresql.enable = true;
|
||||
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
backupAll = true;
|
||||
location = "/vault/backups/zion/databases";
|
||||
startAt = "*-*-* 05:15:00";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user