FTP Recording "FIXED"

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

FTP Recording "FIXED"

Postby chasejordan1 » Mon Oct 08, 2012 5:11 pm

I want to set up cron job to FTP my recording that are 2 months old, how would I do this? Basically I want to keep all recording on local server for 2 month then upload them. Thanks Thad
Last edited by chasejordan1 on Thu Oct 25, 2012 8:36 pm, edited 1 time in total.
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: FTP Recording

Postby williamconley » Mon Oct 08, 2012 11:50 pm

crontab -e shows the ftp recording cron. Modify that perl script to only move files that are over two months old and you're good. Remember to make a copy of it, modify the copy, execute the copy ... so you always have the original to refer to. I don't remember if that uses mysql to grab DB entries or a "find" command to grab the files ... but either one can be modified to grab based on a date relative to today.
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: FTP Recording "FIXED"

Postby chasejordan1 » Thu Oct 25, 2012 12:39 pm

This is what I did to get it to ftp once a month

0 20 26 1,2,3,4,5,6,7,8,9,10,11,12 * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

0 = min
20 = 8 pm
26 = the 26th of the month
1, thru 12 = every month

So at 8pm on the 26th of each month the files will transfer to my ftp server. Hope this helps someone.
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: FTP Recording "FIXED"

Postby williamconley » Thu Oct 25, 2012 9:49 pm

you could replace "1,2,3,4,5,6,7,8,9,10,11,12" with "1-12" or just *
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 139 guests