LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-23-2009, 12:00 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Question Best Way To Move Data via Rsync?


I am getting ready to tear down a server and I need to pull a directory off the server which has massive data on it. The directory is /data on "server_old" I would like to move that data as fast as possible to "server_new" but am not sure the best way to do so. Should I scp the data over SSH? Do I do some kind of Rsync command with compression switch enabled so the data is compressed and then sent over ssh to the "server_new"?

Any advice is greatly appreciated!

Code:
[root@server_old ~]# df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sdb1     ext3    396G  364G   12G  97% /data
 
Old 09-23-2009, 12:42 PM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
root@serverold:~#rsync -avzpl /data root@servernew:/

Do a man rsync. The best what I liked is that it preserves the user permissions along with the links.

Regards,

--
Prasanta
 
Old 09-23-2009, 03:03 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Thanks for that. I will give that a shot. I spoke to a co-worker and they advised me to not use Rsync due to the fact that it will compress and encrypt the data which is extremely CPU and bandwidth intensive if you're just going from old_server ---> new_server on the same trusted network.
 
Old 09-23-2009, 08:04 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
rsync is overkill for a one off, as your co-worker said, scp is sufficient. Although, for a one-off there may not be that much difference; scp will encrypt anyway. You may be able to turn compression off.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: Using rsync to mirror data between servers david_ross LinuxAnswers Discussion 8 03-29-2012 01:37 AM
Can rsync work with 10 terabyte data? ufmale Linux - Software 3 06-22-2008 06:09 PM
how to move data in partitioning provkitir Linux - Software 1 11-07-2004 06:21 PM
Problem with data backup using rsync and samba coolamit78 Linux - Networking 0 10-31-2004 09:01 AM
Rsync to mirror data for backup - having difficulties tapanga Linux - Newbie 1 05-17-2004 05:45 PM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration