feat(etna): add postgresql backups
This commit is contained in:
parent
31c2dc36a6
commit
f4dfac08e1
2 changed files with 23 additions and 6 deletions
19
systems/etna/postgresql.nix
Normal file
19
systems/etna/postgresql.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services = {
|
||||
postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
|
||||
port = 5432;
|
||||
enableTCPIP = true;
|
||||
};
|
||||
|
||||
postgresqlBackup = {
|
||||
enable = true;
|
||||
backupAll = true;
|
||||
compression = "zstd";
|
||||
location = "/data/backups/postgresql";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue