LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I ftp between linux servers? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-ftp-between-linux-servers-87413/)

husker 08-30-2003 04:17 PM

How do I ftp between linux servers?
 
I just got a new host. Both are dedicated machines that I have full root with, and both are using redhat 7.3. I have about 800megs worth of files I need to get on the new host, and it takes forever uploading at 32kb/sec. I have heard it is possible to ftp from one server to another, how is this done?

Thanks!

P.S. You can post here or email me at husker15@cox.net

Crashed_Again 08-30-2003 04:20 PM

You have to setup the server that you want to get the files off of as an ftp server. Then you can ftp from the client machine to the server and download whatever files are available in the ftp directory. Their are a lot of ftp packages out there. I'd suggest doing a search on this site for ftp server. Their are a lot of threads about installing and configuring an ftp server.

husker 08-30-2003 05:17 PM

I think it already has FTP on it, and I can ftp from the client to the host server, I just dont know the command to get the files..

iphoting 08-30-2003 08:18 PM

Quote:

Originally posted by husker
I think it already has FTP on it, and I can ftp from the client to the host server, I just dont know the command to get the files..
get *

idaho 08-30-2003 08:34 PM

What you will probably want to do is create a tarball of your 800 MB of files, ftp the tarball between systems, and then untar the files on your destinations system.

To create a (compressed) tar ball invoke:
tar -cvzf mytarball.tz myfiles.or.directory

To see what is in the tarball invoke:
tar -tvzf mytarball.tz

To extract the files from the tarball invoke:
tar -xvzf mytarball.tz

To start your ftp session invoke:
ftp <ftpserver>

After you login you can see the available ftp commands by typing ?

get <filename> brings files from the server to your client machine

put <filename> moves files from the client to the server

LinuxTiro 08-30-2003 09:20 PM

i think if u use
mget <filename>
and
mput <filename>
instead of get it would be better.

footfrisbee 08-31-2003 01:53 AM

idaho's instructions probably what you want to use. The only thing that I would add is to use the -p switch to preserve the permissions of the files when extracting the files.


All times are GMT -5. The time now is 10:45 PM.