第一步:下载linux使用客户端:ftp://ftp.ncftp.com/ncftp/binaries/ncftp-3.2.5-linux-x86-glibc2.3-export.tar.gz
           该客户端是32位机器使用,如果不合适,请到http://www.ncftp.com/download/ 选择适合的类型。
 
第二步:解压已经下载好的客户端 (例如我解压vol1 的目录里)
 
 
第三步:上传文件(/vol1/ncftp-3.2.5/bin/ncftpput 是根据上一步解压的路径所得到):
/vol1/ncftp-3.2.5/bin/ncftpput   -u【ftp帐号】   -p【ftp密码】   -m   -R   【ftp地址】  【ftp目录】  【需要上传的文件或文件夹】
例如:
/vol1/ncftp-3.2.5/bin/ncftpput   -ugz      -pgtcity3a      -m   -R    download.gtomato.com    /tmp/     /vol1/upload/avchannel/ 
 
附上ncftpput方法其他参数说明:
NcFTPPut 3.2.5
Usages:
  ncftpput [flags] remote-host remote-dir local-files...   (mode 1a)
  ncftpput [flags] bookmark-name remote-dir local-files... (mode 1b)
  ncftpput -f login.cfg [flags] remote-dir local-files...  (mode 2)
  ncftpput -c remote-host remote-path-name < stdin         (mode 3)
  ncftpput -C remote-host local-path-name remote-path-name (mode 4)
 
Flags:
  -u XX  Use username XX instead of anonymous.
  -p XX  Use password XX with the username.
  -P XX  Use port number XX instead of the default FTP service port (21).
  -j XX  Use account XX with the account (deprecated).
  -d XX  Use the file XX for debug logging.
  -e XX  Use the file XX for error logging.
  -U XX  Use value XX for the umask.
  -t XX  Timeout after XX seconds.
  -a     Use ASCII transfer type instead of binary.
  -m     Attempt to mkdir the dstdir before copying.
  -v/-V  Do (do not) use progress meters.
  -f XX  Read the file XX for host, user, and password information.
         If file XX does not exist, check for bookmark XX in $HOME/.ncftp/bookmarks.
  -h XX  Connect to host XX.  Useful for overriding host in -f config.file.
  -c     Read locally from stdin and write remotely to specified pathname.
  -C     Similar to -c, except a local pathname is specified.
  -A     Append to remote files instead of overwriting them.
  -z/-Z  Do (do not) try to resume uploads (default: -Z).
  -T XX  Upload into temporary files prefixed by XX.
  -S XX  Upload into temporary files suffixed by XX.
  -DD    Delete local file after successfully uploading it.
  -b     Run in background (submit job to "ncftpbatch" and run).
  -bb    Same as "-b" but queue only (do not run "ncftpbatch").
  -E     Use regular (PORT) data connections.
  -F     Use passive (PASV) data connections (default).
  -I XX  Use IP address XX for local source address.
  -y     Try using "SITE UTIME" to preserve timestamps on remote host.
  -B XX  Try setting the SO_SNDBUF size to XX.
  -r XX  Redial XX times until connected.
  -o XX  Specify miscellaneous options (see documentation).
  -W XX  Send raw FTP command XX after logging in.
  -X XX  Send raw FTP command XX after each file transferred.
  -Y XX  Send raw FTP command XX before logging out.
Logo

更多推荐