On Thu, Feb 09, 2006 at 11:56:02AM -0200, Dov Bigio wrote: > Hi Tzafrir, > > The problem was the file Master.csv that had reached 2.0GB. > I am writing a cron script to backup this file periodically and prevent this > from happening. > > Any way, if any developers are reading this, I don't think that rotating > asterisk logs is the best way to handle this problem! > Maybe a more user-friendly message could be logged, infoming which file > reached the 2.0GB.
This should be the job of the log rotate script. Limit its size to 1 GB and rotate it weekly. see logrotate.conf(5) . Part of just about any linux distro. Normally run in the daily cron. > > About your question, yes I do, for log files. Is "logger rotate" could also > after I delete csv files? Anybody? -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
