goautodial 3.0 deleting last 2 days recordings
Added by reheno side almost 12 years ago
i want to delete all recordings that was done last two days.. .how to create a script in goautodial 3.0 in a crontab?
Replies (3)
RE: goautodial 3.0 deleting last 2 days recordings
-
Added by Levy Ryan Nolasco almost 12 years ago
Hi,
You can try the script below. Change the numbers of days by changing the value "+14" to "+2".
- 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
Regards
RE: goautodial 3.0 deleting last 2 days recordings
-
Added by reheno side almost 12 years ago
hi,
tnx. i will try it.. hope it works....
RE: goautodial 3.0 deleting last 2 days recordings
-
Added by reheno side almost 12 years ago
Hi Levy ,
where i put the script? or do i have to make a script that allowed to delete recordings for the last two days? can u make a procedure where to make it?
tnx,,.
regards,
reheno