LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2012, 11:49 AM   #1
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Rep: Reputation: Disabled
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..
 
Old 02-01-2012, 11:51 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Do you have ssh access to both servers ?
 
Old 02-01-2012, 12:31 PM   #3
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Cedrik View Post
Do you have ssh access to both servers ?
yes..
 
Old 02-01-2012, 12:39 PM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
just use scp to copy

1. login to the new server
2. use scp to copy files and folders from old server
 
Old 02-02-2012, 10:18 AM   #5
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Cedrik View Post
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..?
 
Old 02-02-2012, 10:56 AM   #6
reformedben
LQ Newbie
 
Registered: Jan 2012
Location: Phoenix, AZ
Distribution: Red Hat, CentOS
Posts: 4

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] win7 web client problem with apache2 web server on linux lapinux Linux - Networking 2 03-15-2011 12:21 PM
how to add additional web domain for existing web server in rhel5 124vikas.dange@gmail.com Linux - Server 2 11-25-2009 03:45 PM
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 09:54 PM
Getting files off web server itgl72 Linux - Newbie 5 08-11-2003 07:59 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration