How to delete old recordings & Log files Automatically
Added by Rumman Khan almost 11 years ago
Hello Team,
I need help in Automatically deletion of recordings & Logs file (15 days old) on my Go auto dial 3.0 server .
Please help with step by step process & what are other things important for dialer maintenance?
regards,
Replies (1)
RE: How to delete old recordings & Log files Automatically
-
Added by Jefferson Varias almost 11 years ago
Hi,
By default, the system already have a crontab entry that deletes the recordings and log files on the system.
CRONTAB ENTRY:
### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f
### remove old recordings more than 14 days old
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG/ -maxdepth 2 -type f -mtime +14 -print | xargs rm -f
Thanks