How to configure logrotate to just prune a directory once a week?

Posted by ctinnist on Server Fault See other posts from Server Fault or by ctinnist
Published on 2010-05-10T09:58:33Z Indexed on 2010/05/10 10:04 UTC
Read the original article Hit count: 165

Filed under:
|

How to configure logrotate to just delete all files under selected directory once a week?

I'm testing the following:

/var/spool/mydir/* {

    daily
    rotate 0
    nocompress
    copytruncate }

But it doesn't seem to remove anything. Should I wait one day?

Thank you.

© Server Fault or respective owner

Related posts about logrotate

Related posts about cron