setup postgres backup

This commit is contained in:
XenGi 2025-12-06 17:49:14 +01:00
parent 4ec1302a68
commit eeb195d5d3
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -1,12 +1,20 @@
{ ... }:
{
services.postgresql = {
enable = true;
enableJIT = true;
initdbArgs = [
"--locale=C"
"--encoding=UTF8"
];
services = {
postgresql = {
enable = true;
#package = pkgs.postgresql_18;
enableJIT = true;
initdbArgs = [
"--locale=C"
"--encoding=UTF8"
];
};
postgresqlBackup = {
enable = true;
startAt = "*-*-* 09:00:00";
compression = "zstd";
};
};
}