Link to home
Start Free TrialLog in
Avatar of Paul Konstanski
Paul KonstanskiFlag for United States of America

asked on

Transfer Files from one LAMP Machine to Another

I have two LAMP server and I need to transfer a whole directory structure from Machine A to Machine B.

I have telnet root access to both machines.

For most projects I'm working on I just use FTP and download files to my local drive and then upload to the new server via FTP.

But this particular application has nearly 25GB of files to transfer and I would like to simply go straight from server to server.

Is there a simple way to do that from from within the shell access?
SOLUTION
Avatar of Kent W
Kent W
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Paul Konstanski

ASKER

I just realized that I don't have root SSH access on the receiving machine, so I'll have to do the tar option.

Can you give me a sample of how those commands would work?

I'm only moving over a bunch of audio files. It could be as much as 25GB and 1000 files. Will that work via TAR?
Depending the server setup you may be able to do a server to server transfer in your FTP program

tar just packs the files into one file that you can then untar when transferred - easier than copying each file individually.

tar -zcvf target_name.tar.gz folder_to_tar
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, if you have a web server running on the first machine, you can place the .tar in a web directory and use wget from the new machine to download.

wget http://first.machine.com/directory/file.tar.gz

It will be downloaded to the directory from which you issue the command.
You just repeated exactly what I said.
Oops.  Didn't see that Gary, my apologies.

Oh, I see, I saw his request for how go use wget.  That's more of the lines of what I was answering.  The actual command, which OP asked.  I think after that was where you addressed the ftp how-to, and actual unzipping.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good answer. Hard to pick any one as best since they all add to it.  Thanks.