I have a directory structure which contains files already rotated (eg. there is a date part applied to the end). I would like to compress them and keep only 7 of each file type.
Is this achievable with logrotate?
I have a directory structure which contains files already rotated (eg. there is a date part applied to the end). I would like to compress them and keep only 7 of each file type.
Is this achievable with logrotate?
Why not just add the compress
option to your logrotate config file? Reinventing the wheel sucks.
I have decided to write a shell script instead of using logrotate for this purpose.