[IRCServices] Turning over logs with crontab?

Mircea Damian dmircea at linux.kappa.ro
Thu Oct 5 23:02:49 PDT 2000


On Thu, Oct 05, 2000 at 07:54:56PM +0100, Jonathan Morton wrote:
> >You have my vote for that. :)  I'm looking at log files that run into the
> >100's of megs, and it would be nice to shuffle them off to another place,
> >or automate it in some fashion.
> 
> Here's my idea.  At midnight, start a new logfile (eg.
> services.log.YYYYMMDD), close the old one, and update a symlink
> (services.log) to point to the latest logfile.  After a few days' running,
> the log directory would look like this:
> 
> services.log -> ./services.log.20001004
> services.log.20001001
> services.log.20001002
> services.log.20001003
> services.log.20001004

This would be nice.

> 
> An optional setting to compress/move logfiles a week old (or so) would also
> be helpful, I suspect.


No. That's why cron was built for. Just add your script there to compress
the logs and move/backup them wherever you like.

> 
> Just my 2 pence...
> 

-- 
Mircea Damian
E-mails: dmircea at kappa.ro, dmircea at roedu.net
WebPage: http://taz.mania.k.ro/~dmircea/

---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.