[英]Logrotate to ignore the most recent file
我将使用 logrotate 来管理日志文件,但是,我只想轮换超过 2 天的日志文件(我不希望 logrotate 更改最近 2 天日志的文件名)。 有没有办法做到这一点?
我目前的配置是这样的:
/tmp/test.* { missingok 每日轮换 2 }
每个 logrotate 的 man 条目:
minage *count*: Do not rotate logs which are less than <count> days old.
https://manpages.debian.org/stretch/logrotate/logrotate.8.en.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.