Logrotate - daily log files for a month

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Using Fedora 7, I am trying to see how we can rotate some log files each
day, but keep a month's worth of files.

Logrotate can rotate the files daily, and I can specify something like:

   start 1
   rotate 30

But this does not account for month's of 31 days, or February with 28/29
days. Likewise if I set 'rotate 31' then this is not going to work on
those months of just 30 days.

Does anyone have any ideas about this?



John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@xxxxxxxxxxxxxx       Fax: +44 (0)1752 233839

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux