Guys - I get a bit confused with the RSYNC command on keeping identical directories on two different servers mirrored / identical. Some times if my folder path is not correct, I end up something like:
So I am trying to copy everything from server1 /share/pub/ to match server2 /share/pub/
Would the following be correct to run from server2 assuming that server1 is the master?
rsync -avz --delete -e ssh email@example.com:/share/pub /share/