Author Topic: vsncftp - yet another FTP uploader  (Read 614 times)

hakerdefo

  • Posts: 512
    • View Profile
    • Looking at Linux through the Windows of Life
vsncftp - yet another FTP uploader
« on: March 09, 2016, 10:48:58 PM »
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,

Code: [Select]
HOST_1='ftp-test.vsido.co.us'


Make sure  HOST_1  doesn't look like this,

Code: [Select]
HOST_1='ftp://ftp-test.vsido.co.us'

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


Code: [Select]
USER_1='your_ftp_user_name'

Code: [Select]
PASSWD='your_ftp_password'

Code: [Select]
LOCALPATH1='/path/to/directory/with/upload/files/*'

Mind the trailing  /*  DON'T REMOVE  /*


Code: [Select]
LOCALPATH2='/path/to/directory/with/upload/files'

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


Code: [Select]
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

  •      v-ger
  • Posts: 3895
    • View Profile
    • VSIDO Community
Re: vsncftp - yet another FTP uploader
« Reply #1 on: March 10, 2016, 03:04:04 AM »
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 Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO