Simple server mirrorring

I'd like to improve the redundancy of my server by setting up mirrorring. Can I setup it this way:

- get another server with another provider
- setup the DNS with ns1 points to the primary server and ns2 points to the secondary server
- rsync all the files in the primary server to the secondary server daily

Is this a correct setup?

If the primary server is down, will all traffic be automatically routed to the secondary server?

When both servers are up, will all traffic be routed to the primary server by default (I don't want any traffic to the secondary server unless the primary server is down)?

Thanks in advance and have a nice weekend!

 

 

 

 

Top