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

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

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

Postby bghayad » Thu Jul 18, 2013 3:39 am

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
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

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

Postby williamconley » Sat Aug 10, 2013 4:18 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 83 guests