我将使用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