setup postgres backup
This commit is contained in:
parent
4ec1302a68
commit
eeb195d5d3
1 changed files with 15 additions and 7 deletions
|
|
@ -1,12 +1,20 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.postgresql = {
|
services = {
|
||||||
enable = true;
|
postgresql = {
|
||||||
enableJIT = true;
|
enable = true;
|
||||||
initdbArgs = [
|
#package = pkgs.postgresql_18;
|
||||||
"--locale=C"
|
enableJIT = true;
|
||||||
"--encoding=UTF8"
|
initdbArgs = [
|
||||||
];
|
"--locale=C"
|
||||||
|
"--encoding=UTF8"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
postgresqlBackup = {
|
||||||
|
enable = true;
|
||||||
|
startAt = "*-*-* 09:00:00";
|
||||||
|
compression = "zstd";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue