Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

4 Answers 4

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.)
share|improve this answer
    
Thanks for the csync tip! –  hakre Nov 20 '10 at 23:18
    
You don't happen to have exactly how to do this written up anywhere? –  MikeSchinkel Feb 22 '11 at 16:22
    
csync is only for the files, not the database, correct? –  AlxVallejo Mar 5 '12 at 1:12

You can mirror the database and the file-system. For File-system you can use rsync, and for the database, for example that level ;) http://www.mysql.com/products/cluster/

share|improve this answer

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.

share|improve this answer

Doing MySQL replication isn't the easiest thing in the world,, and requires another server somewhere.

I'd be tempted by something like VaultPress (http://vaultpress.com/features/), even if it doesn't provide true hot stand-by failover.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.