changed postresql logrotate to new format
This commit is contained in:
parent
fff283a5f7
commit
f10d51fb8f
1 changed files with 9 additions and 12 deletions
|
|
@ -26,18 +26,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logrotate = {
|
services.logrotate = {
|
||||||
paths.postgresqlBackup = {
|
settings = {
|
||||||
path = "${config.services.postgresqlBackup.location}/*.sql.zstd";
|
"${config.services.postgresqlBackup.location}/*.sql.zstd" = {
|
||||||
user = "postgres";
|
su = "postgres postgres";
|
||||||
group = "postgres";
|
rotate = 24;
|
||||||
keep = 24;
|
|
||||||
frequency = "hourly";
|
frequency = "hourly";
|
||||||
extraConfig = ''
|
dateext = true;
|
||||||
dateext
|
dateformat = "_%Y-%m-%d:%H";
|
||||||
dateformat _%Y-%m-%d:%H
|
extension = ".zstd";
|
||||||
extension = .zstd
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue