How to configure logrotate to just prune a directory once a week?
- by ctinnist
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.