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

Re: mirror/syncronize a server?

From: Geoffrey Plitt <playergiro_at_gmail.com>
Date: 2005-05-11 17:51:33 CEST

Yes, I thought of this solution. However, this is not an
atomic/reliable operation, like all of the "svn" commands are.

If there are failures during the transfer, it won't automatically get
the dumps again. It would be nice if there was some sort of "svnadmin
sync http://PATH_TO_REPO" command, which could
- access the source repo, updating this repo with all changes.
- check any previously failed attempts, and re-get the data, to come
back up to date.
- this could be scheduled once an hour or something.

Geoff

On 5/10/05, Helge Jensen <helge.jensen@slog.dk> wrote:
> Geoffrey Plitt wrote:
> > Hi,
> >
> > Is it possible to mirror/syncronize a subversion server?
>
> Send incrementail dumps, essentially:
>
> LAST=`cat LAST`
> NOW=`svnlook youngest $REPO`
> svnadmin dump $REPOS -r$LAST:$NOW --incremental \
> | ssh ohterserver svnadmin load $OTHER_REPO
> echo -n $LAST > LAST
>
> I use this daily to an offsite svn-mirror.
>
> Of course, you need to serialize the execution of the above if you wish
> to exec it in post-commit.
>
> --
> Helge Jensen
> mailto:helge.jensen@slog.dk
> sip:helge.jensen@slog.dk
> -=> Sebastian cover-music: http://ungdomshus.nu <=-
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 12 00:12:15 2005

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