vsncftp - yet another FTP uploader

hakerdefo

Here is another bash script to upload to FTP. This time it's a bit different than the previous one I posted here. This version uploads all the contents of a directory to FTP server. No fancy GUI this time. No input prompts. Just a wee dependency. Don't worry the script will cry if the dependency is not met with  :P

Before using the script you will have to add values to the following variables,


HOST_1='ftp-test.vsido.co.us'



Make sure  HOST_1  doesn't look like this,


HOST_1='ftp://ftp-test.vsido.co.us'


The backbone behind this script doesn't like the usage of  ftp://ftp



USER_1='your_ftp_user_name'



PASSWD='your_ftp_password'



LOCALPATH1='/path/to/directory/with/upload/files/*'


Mind the trailing  /*  DON'T REMOVE  /*



LOCALPATH2='/path/to/directory/with/upload/files'


MAKE SURE TO REMOVE   /*  WE DON'T NEED  /*  HERE. THE PATH SHOULD BE THE SAME MINUS TRAILING  /*



RDIR="/ftp/directory/to/upload/files/to"


Here add the FTP directory to which you wish to upload files. i.e.  /incoming   /ISO  /upload  etc.. etc..


Save the file somewhere in your $PATH. chmod 755 it. Run it. By default it will remain silent. Won't show any progress-transfer information. On completion, successful or erroneous, it will show detailed log file(s).

Cheers!!!
You Can't Always Git What You Want

VastOne

Thanks for this hakerdefo, this is more of the type I want to use

I am building new ISO's yet again due to new kernels again tonight and will test it

I appreciate it!
VSIDO      VSIDO Change Blog    

    I dev VSIDO