Page 1 of 1

Recording:Moving files old more than 2 weeks, then remove

PostPosted: Thu Jul 18, 2013 3:39 am
by bghayad
Hello;

vicibox 4.0.3, vicidial 2.8-404a, Build 130605-0841, asterisk 1.4.39.1-vici, Single Machine, Vtiger 5.4

How I can have crontab to move the recorded files that has been older than 2 weeks to another directory, then deleting the recorded files that is older than 1 month from that directory (that we remove the files that is old by 2 weeks for it).

In this case, we will have the normal recording directory contains files with old only 2 weeks, and another directory contains files with old only 1 month. How?

Thanks for the kindly support and help.

Regards
Bilal

Re: Recording:Moving files old more than 2 weeks, then remov

PostPosted: Sat Aug 10, 2013 4:18 pm
by williamconley
crontab -e has several scripts that move/mix/delete files and recordings. modify them to suite your needs.

one in particular is specifically designed to move recordings OFF the Vicidial server to an FTP/Web server so those recordings take up NO space and will not be lost in case the Vicidial server requires rebuilding. Very useful.