-2

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?

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109
Istvan
  • 2,582
  • 3
  • 22
  • 29

2 Answers2

1

Why not just add the compress option to your logrotate config file? Reinventing the wheel sucks.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
-2

I have decided to write a shell script instead of using logrotate for this purpose.

Istvan
  • 2,582
  • 3
  • 22
  • 29