I have an apache subversion running in production environment, the repository size is around 100 GB. Now I am trying to build a failover standby for the primary SVN server. I have gone through a couple of backup mechanisms, but I couldn't find an ideal one which is apt of my failover setup. Can anyone could suggest me an ideal solution for a realtime backup for svn with easy failover and disaster recovery.
I have the following backup info, but I need to know which is the most recommended one.
- Using svnadmin dump for complete backup. (for 100GB everytime this would be a head ache, restoring is also a pain)
- Using svnadmin dump with incremental backup. (This is my current backup scenario, It take incremental backups on a daily basis)
- rsync the primary svn directory to standby host. (I am not sure about the integrity of files using this mechanism. Any sudden outage on primary could left a corrupted svn repo on secondary.? Im not sure about this)
Using svnsync for mirroring repositories.
Please suggest how to move forward with valuable comments.