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

Re: Subversion 1.9.7 server on Windows, advice on setting up svnsync?

From: Bo Berglund <bo.berglund_at_gmail.com>
Date: Thu, 29 Mar 2018 08:45:03 -0400

On Thu, 29 Mar 2018 13:20:04 +0100, Philip Martin
<philip_at_codematters.co.uk> wrote:

>Bo Berglund <bo.berglund_at_gmail.com> writes:
>
>> 1) Do I have to disable the hooks I put in place for sync during the
>> load? Or will they not be triggered during a load operation?
>
>No, by default load does not invoke hooks. You can choose to invoke
>them via a command line options.

Good, then I will go ahead and erase the failed mirror repos and
re-create them and then load the dump files. But for the not yet used
repos I can just start loading the dumps. Saves some time.

>> 2) What do I do about the two repos where I have already run an
>> initialization command without the flag and where a number of
>> revisions have already been transferred before the error?
>
>If you want to load a dumpfile into these repositories then you need an
>incremental dumpfile that starts at the correct revision, not at zero.
>So to update a mirror where head is rN you need:

I don't need to continue from where they failed, it is easier for
these two to just load the full dump into a newly created empty repo.

>The master knows nothing about the mirror (except for any custom stuff
>that you put into the master hook files). All the svnsync
>initialization data is stored as revprops on r0 of the mirror. e.g:

That is the important item I needed! It means that if I kill the
existing partial mirror repos and re-create them anew I will have a
working target after I load the dump! :)

Thank you very much for your help! Much appreciated!

-- 
Bo Berglund
Developer in Sweden
Received on 2018-03-29 14:45:19 CEST

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.