Page 1 of 1

FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Sat Jan 31, 2015 6:41 am
by richardroi
Hello,
I was backing up my old server recordings via FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp, it was transferring but it stopped at 690 mb, when i look at the drive (df- h), the used drive is 92gb, I was expecting it will transfer everything continuosly. The server is not in use, can you explain 2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM what is the schedule of transfer.

Thank you.

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Sat Jan 31, 2015 7:06 am
by richardroi
It is transferring every 3 minutes, then why it stopped, whrere can i find the logs if it has errors?

I am using windows server for my FTP server.

Any one?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Mon Feb 02, 2015 6:53 am
by DomeDan
check the mail for root, just type
mail
when logged in as root

or just try to run the script manually from the command line
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM

it will probably give you some information.

also check the log of the ftp server on your windows server

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Mon Feb 09, 2015 4:35 pm
by richardroi
Tried windows7 FTP server same issue, it stopped on 1000 files. This is my 3rd windows ftp server. All stopped at exactly 1000 files. This is running on local network.

Anyone?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 5:50 am
by DomeDan
in AST_CRON_audio_3_ftp.pl there is a variable for that
$file_limit = 1000;

it is limited because the script is made to be run every third minute during the day
without the limit it would be possible that cron start the script before the previous run was finished.

so just edit your crontab (crontab -e) and make the script run every third minute as it does by default:
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 7:03 am
by richardroi
Thank you, but I never touched 2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3, how can i set it to transfer everything one time?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 7:12 am
by DomeDan
yes you need to uncomment that line to make it active in crontab

if you look at the options for the script you might find something useful: AST_CRON_audio_3_ftp.pl --help

[--transfer-limit=XXX] = number of files to transfer before exiting

use that flag when you run the script

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 7:40 am
by okli
In addition, I'd schedule that script to run after hours, so it can transfer everything in one go, without causing any load during working hours.

http://www.adminschoice.com/crontab-quick-reference

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 9:05 am
by richardroi
The server is not in use so it is good to go. Just to make it clear I need to comment out "$file_limit = 1000;"?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 9:09 am
by DomeDan
No.

this line:
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

is usually commented out (if I'm not wrong)



you do not need to edit AST_CRON_audio_3_ftp.pl
because I saw this flag:
[--transfer-limit=XXX] = number of files to transfer before exiting
just after I saw the variable.



Use this command:
AST_CRON_audio_3_ftp.pl --transfer-limit=9999
to be able to ftp 9999 files instead of the default 1000

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 9:39 am
by richardroi
Thank you so much! Will try it....

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 9:58 am
by richardroi
when I turned on the server it starts transferring the recording, so I waited. It stops again, 1000 files, then I ran /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --transfer-limit=9999 but nothing happened. am i doing this correctly?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 10:01 am
by DomeDan
maybe you use --MP3 flag or something too?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 10:47 am
by richardroi
what i did was i put it on the cronjobs, 2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999, still nothing, I removed the flag --transfer-limit=9999 then i ran this because I saw your reply /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999, still nothing. the files are not getting updated. still 1000files on folder properties.

When I looked at htop the job is running.

What seems to be my issue?

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Tue Feb 10, 2015 12:09 pm
by richardroi
Any other approach? Sorry not so good on scripts.

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Wed Feb 11, 2015 4:21 am
by DomeDan
there is a list limit option too, didnt think it would be the list of the remote directory, but i guess it is.
run this command:
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999 --list-limit=9999

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

PostPosted: Wed Feb 11, 2015 3:16 pm
by richardroi
i temporary disabled 2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM, and ran this /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999 --list-limit=9999 manually, nothing wrong with that right?

Thank you so munch...seems to be working.