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

Re: synchonizing two Subversion repositories

From: Nick Thompson <nickthompson_at_agere.com>
Date: 2006-05-04 11:00:08 CEST

On Thursday 04 May 2006 05:07, ninad panday wrote:
> Hi All,
> I have two svn server running with Apache using fsfs.
> I want to synchronize repository of Server B with server A. That is
> at a specific time the repository at server A should be copied to
> server B.
> One solution can be.
> 1. Create backup of resositry of server A with hotcopy at specfied
> time interval 2. use scp or rsync to transfer this back to server B
> can we use this or there is any other way to do this? One more
> thing, this is a one way copy i.e. from server A to server B

You can use the script SVNmirror which I imagine you can find with

Or you can do for yourself something similar to what it does (IIRC):

"svnadmin dump" new revision(s) on A since last update.
scp the dump file to B.
"svnadmin load" the dump file on B, which load just the new revisions.

The dump command would look something like:

svnadmin dump /repo/path -r <rev_range> --incremental >dumpfile

You can use rsync to get the initial copy onto B and for updating B
after your sync process goes wrong (bugs, network issues, etc.).


> Nick Thompson
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 4 11:02:22 2006

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.