- I have server1 as production server.
- I have server3 as failover server. Spun up from snapshot of server1.
- I have server2 as filebackup server for server one. Role is to be the workhorse for supporting servers 1 and 3.
All three can talk to each other via ssh tunnel. All three are ubuntu 16.04 on digitalocean, each in a different region. MySQL database is installed to facilitate Wordpress site running in var/www/HTML. Likewise for php7 and nginx.
Two questions: Can I run rsync from server2 to keep server3 in sync with server1?
Since server3 is an identical twin of server 1, I want ALL changes on server1 synced to server3. Including system changes, software installs, content changes...all off it. The idea is to maintain server3 as identical to server1.
What then do I tell rsync to sync? Would it simply be server1/ to server3/ recursive?
Thank you for all input. I have reviewed all searches but could not see that these two specific questions have been addressed in the context of this configuration. Everything seems to deal with syncing only certain files or folders and not entire installations.