-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,262
  • 12
  • 53
  • 108
Istvan
  • 2,562
  • 3
  • 20
  • 28

2 Answers2

1

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

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
-2

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

Istvan
  • 2,562
  • 3
  • 20
  • 28