forked from wurzel/fruitbasket
postgres: enable backups
This commit is contained in:
parent
ca5d374f51
commit
cdd10f5372
2 changed files with 9 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue