How to keep a WordPress site synchronized between two servers?

I have a WordPress site running in a dedicated server in hosting A and I would like to keep it synchronized with a copy in another hosting server for fail over protection. Is that possible?

Related posts

Leave a Reply

4 comments

  1. I’ve been doing this successfully with csync and an NDB cluster for years…

    Re other solutions:

    • rsync works too, albeit slower. (Much, much slower; slow enough to rule out any file-based caching.)
    • InnoDB/MyIsam master/slave works too, with HyperDB. But, you’ll end up with a need to manage other stuff, namely auto-increments on write servers, if you need multiple write servers. (NDB is master/master, whereas InooDB or MyISAM cluster are designed and optimized for master/slave setups.)
  2. This should maybe be handled on a lower level. Have your webserver run on a virtual machine and distribute the container. They call this “cloud” nowadays.