[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: synchronize two subversion repositories

From: Daniel Patterson <danpat_at_danpat.net>
Date: 2005-03-18 11:14:22 CET

Henk wrote:
> Hi,
>
> we have two identical servers in failover. We would like to use
> subversion on them. One server is the master server which we will use
> most of the time. When the master fails, the slave will take over. What
> do you think is the best way to keep the two repositories on these two
> machines synchronized ? Can I just make a backup on the other machine
> every x minutes ? Can I use rsync ? Is there some easier way ?

   If you're using the FSFS backend, then rsync will probably do nicely.

   I've also had "svnadmin dump -r N --incremental" running as a
   post-commit hook, which copied the dump over to the other server
   and did an "svnadmin load". Seemed to work well enough. You need
   another hook to handle revprop changes too. Rsync is a lot easier,
   but it gets progressively slower as the size of the repository
   grows.

   We have a similar setup, however, the volume where the FSFS filesystem
   is located is on an EMC SAN of some sort, and it just magically
   "appears" on the failover server if the main server goes down
   (we have an entire department responsible for "storage").
   We just leave Apache running on both servers, and when a "failover"
   event occurs, the SAN moves to the failover host, and the DNS
   entry for the svn host is changed.

daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 18 11:20:20 2005

This is an archived mail posted to the Subversion Users mailing list.