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:
[root@mail zoo]# rsync -ave ssh /zoo/ firstname.lastname@example.org:/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.
building file list ... done
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?