I have a major issue with rsync. Preface:
2 servers, with Centos 5-x86_64.
root can login from server1 to server2 via passwordless ssh and vice versa.
/home on server1 is full of data (100GB).
/home on server2 was empty
I used rsync to initially copy them to server2, with the following options: -avz --delete
The complete command was:
/usr/bin/rsync -avz --delete /home/ root@server2:/home
The only other difference between the 2 servers was the timestamp (server 2 was late by 5 minutes).
The result was the data loss on server1
. Nothing copied on server2! WHY?