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

Re: Live replication to backup server

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Fri, 21 Jan 2011 08:02:32 -0500

On Fri, Jan 21, 2011 at 3:57 AM, Oliver Marshall
<Oliver.Marshall_at_g2support.com> wrote:
> Hi,
>
>
>
> Does anyone know of any manageable way to have SVN (Ubuntu 8 LTS currently)
> replication all changes to a secondary server?

Use post-commit to fire off a command to "svnsync" on the secondart
server. This doesn't mirror configurations, but you don't want to do
that anyway: the second server should be locked down to prevent local
changes, out of sync with the primary server.

Rsync is dangerous because if you do it in post-commit, it's
non-blocking and other changes may be submitted while the change is
occurring and cause chaos in the remote repository. The same problem
exists with mirroring *any* database: the mirroring step needs to be
atomic.

Alternatively, consider switching to a distributed source control
system where merges to disparate repositories are more effective.
Received on 2011-01-21 14:03:12 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.