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 = {
|
||||
paths.postgresqlBackup = {
|
||||
path = "${config.services.postgresqlBackup.location}/*.sql.zstd";
|
||||
user = "postgres";
|
||||
group = "postgres";
|
||||
keep = 24;
|
||||
frequency = "hourly";
|
||||
extraConfig = ''
|
||||
dateext
|
||||
dateformat _%Y-%m-%d:%H
|
||||
extension = .zstd
|
||||
'';
|
||||
|
||||
settings = {
|
||||
"${config.services.postgresqlBackup.location}/*.sql.zstd" = {
|
||||
su = "postgres postgres";
|
||||
rotate = 24;
|
||||
frequency = "hourly";
|
||||
dateext = true;
|
||||
dateformat = "_%Y-%m-%d:%H";
|
||||
extension = ".zstd";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue