Page 1 of 1
FTP Recording "FIXED"
Posted:
Mon Oct 08, 2012 5:11 pm
by chasejordan1
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
Re: FTP Recording
Posted:
Mon Oct 08, 2012 11:50 pm
by williamconley
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.
Re: FTP Recording "FIXED"
Posted:
Thu Oct 25, 2012 12:39 pm
by chasejordan1
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.
Re: FTP Recording "FIXED"
Posted:
Thu Oct 25, 2012 9:49 pm
by williamconley
you could replace "1,2,3,4,5,6,7,8,9,10,11,12" with "1-12" or just *