[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: Sat, 24 Mar 2018 22:40:55 -0500

On Sat, 24 Mar 2018 20:17:27 +0100, Andreas Stieger
<andreas.stieger_at_gmx.de> wrote:

>On 03/24/2018 02:15 PM, Bo Berglund wrote:
>> Is there some current HOWTO I can use to set this up?
>> Some questions that have popped up:
>> - Should the nightly sync job run on the source or the target?
>Actually this could (and should) be a post-commit hook for an immediate
>> - Can the servers be using different OS (Win/Linux)?
>> - Should I use Apache or plain svn on the destination Linux server?
>Both work, and this depends on your network behind it. Ensure that you
>have at least one layer of encryption and authentication.

I have just configured the Apache2 system on the remote Ubuntu server
to use SSL encryption (https access). I used this excellent howto:

So now I have one repository set up and accessible via https on my
domain. This has the same name as one of the repos on the production
server and now sits at revision 0 ready to test the svnsync from the
production server itself. Too late now to start any such testing, but
I will try it out tomorrow.

>> - I can port forward the svn server to the gateway on the target but
>> not on the source, does this affect where the job should run?
>Yes you can sync in this way, the sync can be run from any host
>including a third one (but I recommend server hooks). The sync can also
>be done via URLs (ports) deviating from the usual or declared sync target.

I plan to add hooks into the master server (VisualSVN with svn 1.9.7),
which is a Windows Server 2016. So I will have to translate the hook
scripts from shell language to batch. Seems best to use the
post-commit hook to sync at commit.
Do you know what syntax to use on Windows to have the same effect as
the & at the command line end on Linux?

Bo Berglund
Developer in Sweden
Received on 2018-03-25 05:41:11 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.