LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy files from web server to web server (http://www.linuxquestions.org/questions/linux-newbie-8/copy-files-from-web-server-to-web-server-926969/)

conflicker 02-01-2012 12:49 PM

Copy files from web server to web server
 
Hi every body..

Is there a way to copy files and folders from an old server to new server using putty? if there is any.. Please help..

Thanks..

Cedrik 02-01-2012 12:51 PM

Do you have ssh access to both servers ?

conflicker 02-01-2012 01:31 PM

Quote:

Originally Posted by Cedrik (Post 4590697)
Do you have ssh access to both servers ?

yes..

Cedrik 02-01-2012 01:39 PM

just use scp to copy

1. login to the new server
2. use scp to copy files and folders from old server

conflicker 02-02-2012 11:18 AM

Quote:

Originally Posted by Cedrik (Post 4590749)
just use scp to copy

1. login to the new server
2. use scp to copy files and folders from old server

Thanks.. I've been using the scp to copy the files..

But during the process there are some time the my internet connection failed, and that result the putty to inactive.. I'm just wondering if prefer to re-process again the transfer of file, would it replaced the previous copy that aren't done? or it will continue the transfer base on the last copied files..?

reformedben 02-02-2012 11:56 AM

If you're copying a large amount of files, I would suggest using rsync with the -a switch (see rsync man page). If you're copying web server content I assume some of your files will be permission and ownership sensitive, so using rsync with the archive switch will preserve all timestamps, user/group ownership, and permissions. scp will not preserve those attributes.


All times are GMT -5. The time now is 11:38 PM.