I have ServerA and ServerB, ServerB was created from a snapshot of ServerA.
I want to be able to make changes (configurations, installed programs, files, db changes, etc.) on ServerA and then push those changes to ServerB when I am ready.
From ServerA I run this command:
rsync -avz -e ssh root@ServerB:/
The first thing I am told is:
Warning: the RSA host key for 'ServerB' differs from the key for the IP address '216.119.xxx.xxx' Offending key for IP in /root/.ssh/known_hosts:1 Matching host key in /root/.ssh/known_hosts:2 Are you sure you want to continue connecting (yes/no)?
I type in yes and hit return. I am prompted for root@ServerB's password, then it lists several files and finishes with this:
sent 7821 bytes received 1616926 bytes 47094.12 bytes/sec total size is 140739067508690 speedup is 86622143.33 rsync warning: some files vanished before they could be transferred (code 24) at main.c(1526) [generator=3.0.7]
But it did not sync.
I specifically put a file at /var/www/sync_test_file on ServerA and afterwards (I am expecting the file to now be on ServerB but) there is no such file in ServerB
Am I doing something wrong? Also, today is my first time ever using rsync.