On Sat, 24 Mar 2018 20:17:27 +0100, Andreas Stieger <andreas.stie...@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? > >http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication >http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy > >> 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 >sync. > >> - Can the servers be using different OS (Win/Linux)? > >Yes. > >> - 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: https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04 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