changed postresql logrotate to new format

This commit is contained in:
mc-fucker 2022-11-18 13:52:09 +01:00
parent fff283a5f7
commit f10d51fb8f

View file

@ -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"; dateext = true;
extraConfig = '' dateformat = "_%Y-%m-%d:%H";
dateext extension = ".zstd";
dateformat _%Y-%m-%d:%H };
extension = .zstd
'';
}; };
}; };
} }