Logrotate only for removing old files? -


I have a cron, such as a daily file with a format such as data.log.YYYYMMDD will be generated, and I only logrootate Those files that want to be used for removal are older than 5 days.

I tried it but did not work. Any remedy? Thank you.

P> It is not possible (easily) ... Take a look at these posts:

Most The easiest way to do this is to just work a cron: basically something like this:

$ / usr / bin / find / data / tier2 / scripts / logs / -mtime +7 -name " * .log "-print -exec / bin / rm {} \ \


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -