Re: [Plug] Log rotating

Alexander John Batyi on 1999年8月31日 09:21:20 -0400 (EDT)


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

Re: [Plug] Log rotating


> > in particular. Why is this? What funciton actually handles the log file
> > rotation? What exactly is this rotation? And is there any "standard
> > sysadmin" way of rotating these logs? Whew... probably too many
> > questions, all answered by one asnwer. Any suggestions or ideas would be
> > helpful :-)
> Redhat (and probably other distributions) comes with the logrotate package,
> which contains the logrotate(8) utility.
Basically it's something like this;
mv /path/log.6 /path/log.7
mv /path/log.5 /path/log.6
mv /path/log.4 /path/log.5
mv /path/log.3 /path/log.4
mv /path/log.2 /path/log.3
mv /path/log.1 /path/log.2
mv /path/log.0 /path/log.1
mv /path/log /path/log.0
>/path/log
I haven't seen the logrotate utility but I assume it does something
similar. If you do this daily you save a weeks backup of logs. Weekly
it would save two months, etc. You could gzip or whatever and rotate
the compressed files. Use your imagination! <grin>
_______________________________________________
Plug maillist - Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug



AltStyle によって変換されたページ (->オリジナル) /