postgres: enable backups

This commit is contained in:
Rouven Seifert 2023-08-21 11:40:56 +02:00
parent ca5d374f51
commit cdd10f5372
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 9 additions and 0 deletions

View file

@ -35,6 +35,7 @@
./modules/nginx.nix
./modules/userdir.nix
./modules/hedgedoc.nix
./modules/postgres.nix
./modules/wiki.nix
./modules/ftp.nix
./modules/stream.nix

8
modules/postgres.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }:
{
# automatically back up all databases
services.postgresqlBackup = {
enable = true;
location = "/var/lib/backup/postgresql";
};
}