Question : FTP

I am trying to ftp all files in a folder on a unix server over to my windows server.  The problem is that trying to use an ftp client like WS_FTP freezes up just trying to display all the files in the directory.  The directory contains thousands of files which total about 1GB in size.  I even tried ftp through a command line and ftp does not support *.* with the get command.  How can I copy thousands of files totalling over 1GB from a Unix server to a Windows server??????  

Answer : FTP

Looking at: http://www-new.experts-exchange.com/OS/Unix/Q_22062349.html

You should be able to create a file called fput.sh with the following:

# !/bin/sh
##  fput -- automatic procedure to put a file via ftp
#    usage:  fput {source} [dest]

ftp -n   <user login password
prompt
put $1$2
quit
EOF
# end of procedure


If you need to do a binary transfer you need to add "bin" before the put command.

Then from the directory with all of the files you should be able to issue the command:

     find -name * -prune -exec ./fput.sh {} \;

I have NOT tested this, so you may need to play with it a bit.
Random Solutions  
 
programming4us programming4us