Nicolas Kratz wrote:
I have written a patch for logrotate, available at
http://www.janasfam.de/nick/logrotate/
* New "keep" config directive; Overrides "rotate".
(Should close: #42684, #44452, #49681)
* Fixed unnecessary renaming of logs. (Should close: #165548)
It doesn't appear this patch ever landed. Probably pretty obsolete now.
I ended up working around this problem by first making use of the
"dateext" enhancement available in Etch so that rotated files get
renamed once and only once, then setting a "maxage" directive to say 720
(2 years), and running a weekly cron job to move logs older than 1 year
to an archive directory (as well as compressing any files not already
compressed). This avoids triggering logrotate's normal behavior of
mailing expired logs (which I still want for some logs).
This also addresses the limitation noted in 214549[1] where olddir has
to be on the same file system. (I concur with the suggestion in that bug
that logrotate should internally support an archive directive.)
1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=42684
-Tom
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]