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

Re: svn update to remote web server

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Wed, 11 Jun 2008 19:11:40 -0400

Miguel Gonzalez wrote:
> What I have done is mounting through smbfs the
> webserver share (Samba) with permissions for
> root.technology.

This is likely to be fragile, because Windows has a very different security
model than Unix (even with Samba inbetween). If someone changes a file directly
on the web server, the file permissions can sometimes change so that you are no
longer able to update the repository from the web server. If you can guarantee
this will never happen (and I know I couldn't), they you probably won't have any

It is much better to have a process run natively on the Windows web server to
perform the updates of the local (to the update process) working copy. This way
the rights are much more likely to be consistent.

> I still have to check with the developer if this
> actually works but I wanted to ask first if there is
> any more elegant way of updating after commits a
> remote web server. Some people say using rsync, but
> maybe other people do it differently.

I wrote SVN::Notify::Mirror[1] for this express purpose. However, it isn't that
easy to set up for Windows (I used Cygwin's ssh), so if you aren't comfortable
in both Unix and Windows, this may not be the solution for you. Depending on
your actual environment, just setting up a scheduled job on the Windows server
can be just as effective, if somewhat lagging behind the actual changes.



1) http://search.cpan.org/search?query=SVN::Notify::Mirror

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-12 01:10:24 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.