From users-return-22756-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Sat Jan 17 07:12:11 2015 Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52C0110F90 for ; Sat, 17 Jan 2015 07:12:11 +0000 (UTC) Received: (qmail 56578 invoked by uid 500); 17 Jan 2015 07:12:12 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 56541 invoked by uid 500); 17 Jan 2015 07:12:12 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 56531 invoked by uid 99); 17 Jan 2015 07:12:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2015 07:12:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavel.lyalyakin@visualsvn.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2015 07:12:08 +0000 Received: by mail-wi0-f182.google.com with SMTP id n3so6030225wiv.3 for ; Fri, 16 Jan 2015 23:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=visualsvn.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=B5qq1HJ5FL6NzItsOevqNUQ8s2LE92pvsClhf70NS2Y=; b=bbx0HJS+wnerFNVeKtDe+4jpecJogCPaFO6sCpcnkwoWzk6JW/uA1BxPUyxzGT6+vk Jl72YAKdXyLn2da+cXE6oGTKZf1QJUw0u/8T/xAGwTY9afJPGQmLIgDGaHeFBYbEqYpN RgIwglGT6IZxjkePWnbRBsaxYk6QBxY5AwjnM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=B5qq1HJ5FL6NzItsOevqNUQ8s2LE92pvsClhf70NS2Y=; b=cBYspz2eXlgj5xUD1jnOFm8aS6FCrDDHaoEubRu4UDyA6nEgolAluoRDMvYRncwZw0 ZDIp4e++QyvNfO90zkX2mlKeh+eQCKsjPjTm9WklMVpxcvI/SR6M1HLpeaLoT0jlaPPI xSdGtbLINPWmQJbsasXVeA/IwhTwgZKRb6czsKRZMK7Prx+TNaWXVPFyHB+h/wuy7ttV gOVpq+6D0D3llrKEtyLFX5BOEe5RzWhGRVCXxkhpcwPQfdoQE4JBwEU21ADp7x2Ybf+Z P4Ivfoj9Xbel9id9rIQUqN5GcGBMovlBXme3HNtr6zKdcgTEqiQd6fZvbRZZm+ey2QNx Yj7A== X-Gm-Message-State: ALoCoQkVySut2dTd0t4OyFA36y0XOtMXufqkVRtg+TvElcUXgZw4Vf2/aCxATfyJ8eReYZE95K1Y X-Received: by 10.194.104.129 with SMTP id ge1mr570515wjb.30.1421478662298; Fri, 16 Jan 2015 23:11:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.27.45.207 with HTTP; Fri, 16 Jan 2015 23:10:21 -0800 (PST) In-Reply-To: References: From: Pavel Lyalyakin Date: Sat, 17 Jan 2015 11:10:21 +0400 Message-ID: Subject: Re: How to setup Write-through proxying (aka Replication on-the-fly) in VisualSVN server? To: STF SVN Cc: users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello, > 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 supp= orts >> 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 Sign-On). 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 >> http://www.visualsvn.com/support/svnbook/reposadmin/maint/#svn.reposadmi= n.maint.replication >> and >> http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serve= rconfig.httpd.extra.writethruproxy >> etc etc and tried to follow them but failed. Maybe because those proced= ures >> are for Linux-based SVN server? And how much are those articles relevan= t to >> VisualSVN server, ie Windows-based SVN server? > > I've read > http://www.visualsvn.com/support/svnbook/reposadmin/maint/#svn.reposadmin= .maint.replication > several times, but I have a doubt. Does it apply totally? Can I conside= r > VisualSVN Server like a *generic* Apache HTTP server? Or VisualSVN Serve= r > 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: > http://www.cardinalpath.com/how-to-use-svnsync-to-create-a-mirror-backup-= of-your-subversion-repository/ > but it didn=E2=80=99t talk about putting the SVNMasterURI variable inside= HTTPD > config on the slave server. And as a matter of fact, I=E2=80=99ve gone t= hrough 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 server). -- With best regards, Pavel Lyalyakin VisualSVN Team