<p>What is the best way to create redundant subversion repositories?</p>

<p>I have a subversion repository (linked through apache2 and WebDAV) and would like to create a mirror repository on a different server in the event of outages, but I am not certain of the best way to proceed.</p>

<p>I am thinking that post-commit scripts could be used to propagate changes, but I am not sure if this is the best way to go, anyone have any input</p>

[{'answer_id': 8314, 'author': 'GaryF', 'author_id': 1035, 'author_profile': 'https://Stackoverflow.com/users/1035', 'pm_score': 2, 'selected': False, 'text': '<p>Do you really need per-commit back-ups? There are almost certainly better ways of safe-guarding against failures than going down that route. For example, given that most failures are disk failures, move to a RAID array and/or NAS/SAN storage will provide you with better general protection and, if configured correctly, better performance. At that point, off-site back-ups becomes a matter of using the tools available. See the <a href="http://svnbook.red-bean.com/en/1.1/ch05s03.html" rel="nofollow noreferrer">Repository maintenance section</a> of the svn manual for details.</p>\n\n<p>If you truly do need per-commit back-ups then, yeah, post-commit scripts are the way to go.</p>\n'}, {'answer_id': 8315, 'author': 'Adam Haile', 'author_id': 194, 'author_profile': 'https://Stackoverflow.com/users/194', 'pm_score': 3, 'selected': True, 'text': '<p>Sounds like what you are looking for is basically federated (synced) servers...\nI asked the same question recently...and while I didn\'t find the exact solution I was looking for it came close.\n<a href="https://stackoverflow.com/questions/1790/federated-synced-subversion-servers">See here:</a></p>\n'}, {'answer_id': 9317, 'author': 'Sean Carpenter', 'author_id': 729, 'author_profile': 'https://Stackoverflow.com/users/729', 'pm_score': 1, 'selected': False, 'text': '<p>If you only need read-only access to the mirrored repository, you can use <a href="https://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt" rel="nofollow noreferrer">svnsync</a> which was added in SVN 1.4 for mirroring.</p>\n\n<p>We use a secondary repository on our build server to run CruiseControl.NET against, but the mirrored repository is read-only.</p>\n'}]
['https://Stackoverflow.com/questions/8306', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/277/']