feat(etna): add postgresql backups

This commit is contained in:
uku 2025-01-06 19:11:53 +01:00
parent 31c2dc36a6
commit f4dfac08e1
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 23 additions and 6 deletions

View 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";
};
};
}