[asterisk-users] cdr-custom/Master.csv rotation

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Jun 15 12:23:14 CDT 2008


On Sun, Jun 15, 2008 at 01:50:29PM +0300, Atis Lezdins wrote:

> If they are not held open, you can can just move them away with "mv",
> next CDR should just write new file.

You can. logrotate just automates this 'mv'. It will optionally also
compress older log files. And purge even older ones. It can also avoid
the 'mv' if there was no change. Or rotate by size and not just by time
(it is typically run from a daily cron job). In other words, it is
a "fire and forget" tool.

Naturally you can build one on your own.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list