Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving file from one host another

Status
Not open for further replies.

cdtech9198

IS-IT--Management
Feb 14, 2008
48
US
Hello I am switching web hosting providers. Each provider has granted me SSH access. What is the best way to move my files from a directory on host A to host b without copying the files to my local pc first? I was thinking I can do this via bash command line. Thanks in advance.
 
If you don't have a recent full site backup, I would go ahead and copy the whole thing to your PC as an intermediary. That gives you a backup as of the move to the new server. Might come in handy when trying to debug any differences in it running at the new site.

 
I second the scp suggestion.

While in terminal connected to the source server.
scp -r path/to/website/ user@destinationserverip:path/to/newwebsitedir/

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top