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?
Recent comments
8 hours 17 min ago
13 hours 9 min ago
22 hours 2 min ago
23 hours 1 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 7 hours ago
1 day 14 hours ago
1 day 23 hours ago
2 days 1 hour ago