Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th December 2009, 21:45
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
Question New Server = Need to Move Data

I have a new server ready to go. Both are running the same OS (CentOS 5) and are on the same physical LAN / subnet. They can see and ping each other and connections via SSH is perfectly fine. My question is what is the most recommended way to get everyone's /home/$user directory moved to the new server from the old server? I basically want the /home server from 'srv_old" copied to "srv_new".

I just ran the following from 'srv_old' using 'srv_new' as the destination. I created a test directory and placed 4 files in it. I then created the same directory on the destination server (srv_new) and placed some different files in the test directory to see what happens:

Code:
[root@mail zoo]# rsync -ave ssh /zoo/ root@192.168.0.100:/zoo
The authenticity of host '192.168.0.100 (192.168.0.100)' can't be established.
RSA key fingerprint is 18:1f:3b:7a:e0:47:a1:de:0a:77:97:09:71:b7:7a:93.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.100' (RSA) to the list of known hosts.
root@192.168.0.100's password: 
building file list ... done
./
postfix-2.6.5-1.rhel5.x86_64.rpm
test1
test2
test3

sent 5183439 bytes  received 91 bytes  609827.06 bytes/sec
total size is 5182534  speedup is 1.00
The above basically copied everything in 'srv_old:/zoo/' to 'srv_new:/zoo/'.

Does anyone know if what I did was correct or do you have an easier suggestion? See something wrong with my command syntax?

Last edited by carlosinfl; 29th December 2009 at 22:01.
Reply With Quote
Sponsored Links
  #2  
Old 30th December 2009, 15:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

http://www.howtoforge.com/mirroring_with_rsync
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 won't connect to localhost or 127.0.0.1 anw Server Operation 6 19th March 2009 19:51
procmail problem - mail delivery Lobanak Installation/Configuration 4 1st March 2009 23:24
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 17:30
Primary and Secondary nameserver move martinfst Technical 3 19th January 2007 23:33
Administrator receive empty mail ??? Stanev General 16 7th April 2006 21:56


All times are GMT +2. The time now is 19:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.