I am trying to sync two servers on my LAN as a backup and was wondering if I am running the correct command. The production server is "server-1" and the backup server I am copying everything to is "server-2".
I basically just want any changes made on server-1 to be copied to server-2 including if a file is removed / changed from server-1, it should mirror to server-2.
Is this command correct to be ran from "server-1"?
Code:
rsync -ave ssh --stats --delete-after /share/ctia/share/ root@10.1.1.29:/ctia/LT2FS1