New Server = Need to Move Data

Discussion in 'Server Operation' started by carlosinfl, Dec 29, 2009.

  1. carlosinfl

    carlosinfl New Member

    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/ [email protected]:/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.
    [email protected]'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: Dec 29, 2009
  2. falko

    falko Super Moderator Howtoforge Staff

Share This Page