subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Lyalyakin <>
Subject Re: How to setup Write-through proxying (aka Replication on-the-fly) in VisualSVN server?
Date Sat, 17 Jan 2015 07:10:21 GMT

> On 17 January 2015 at 00:47, STF SVN <> wrote:
>> I know this mailing-list has nothing to do with VisualSVN server, but I
>> really need some help.
>> I need to set up SVN replication on the fly, aka write-through proxying,
>> using VisualSVN server.  I know the new version of VisualSVN server supports
>> replication, but for technical reason, I'm still using old version 2.7.

You can't actually call write-through proxy as "replication on the
fly". Its simple replication solution that runs `svnsync` on master
server *after* each commit by post- hook scripts. Commits always go to
master in write-through proxy, the "proxy" part is just about
redirecting all writes to go to master server which then replicates
them to slaves using `svnsync`. Another note: write-through proxy does
not work with Integrated Windows Authentication (i.e. AD Single

BTW, what are the technical reasons that require you to use VisualSVN
Server 2.7 and don't allow it to be upgraded to 3.2?

>> I have found some articles here and there, eg
>> and
>> etc etc and tried to follow them but failed.  Maybe because those procedures
>> are for Linux-based SVN server?  And how much are those articles relevant to
>> VisualSVN server, ie Windows-based SVN server?
> I've read
> several times, but I have a doubt.  Does it apply totally?  Can I consider
> VisualSVN Server like a *generic* Apache HTTP server?  Or VisualSVN Server
> has some special modification to Apache such that something wouldn't work?

It applies but not totally because sample hook scripts specified in
SVNBook work on *nix Shell only, so they have to be adjusted to work
on Windows.

Here is a sample post-commit hook that will work on Windows (its a
batch script (.bat))
"C:\Program Files (x86)\VisualSVN Server\bin\svnsync.exe" sync
https://SLAVE/svn/repo file:///C:\Repositories\MASTER
exit 0

and post-revprop-change hook
"C:\Program Files (x86)\VisualSVN Server\bin\svnsync.exe"
copy-revprops https://SLAVE/svn/repo file:///C:\Repositories\MASTER
exit 0

> I have also found this article:
> but it didn’t talk about putting the SVNMasterURI variable inside HTTPD
> config on the slave server.  And as a matter of fact, I’ve gone through this
> procedure but I cannot commit to the slave server!

The article is not about write-through proxy, it's about creating a
backup repository that's always up-to-date. That's why this article
doesn't cover the proxy part (i.e. SVNMaserURI config on slave

With best regards,
Pavel Lyalyakin
VisualSVN Team

View raw message