postgres: enable backups
This commit is contained in:
parent
ca5d374f51
commit
cdd10f5372
|
@ -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
8
modules/postgres.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
# automatically back up all databases
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
location = "/var/lib/backup/postgresql";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue