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

Hook script for FTP sync of a hosted test web server

From: Sean Smith <sean_at_nowisit.net>
Date: 2005-07-11 18:27:38 CEST

Can't install SVN on the the web server. No shell script access. All I got
is FTP (shared hosted server at an ISP).

Windows/Mac Clients (TortoiseSVN, WebDAV/DeltaV) edit website files manually
(customer staff)
|
\/
SVN server (Windows XP w/Apache for WebDAV) <--- Our developer's working
copies (svn, TortoiseSVN)
|
(post-commit hook script)
|
\/
~internet~
|
\/
Shared hosted web server (ftp only access)

The benefit I see here is that as soon as a change is made, it's instantly
viewable by the client on the dev website (the client is making changes and
wants to see those changes instantly). I realize if the post-commit script
fails one time, the website will be out of sync and a full copy will most
likely need to be done (I thought about trapping errors in the script and
logging them so files that failed FTP transfer could be identified and
manually copied to the website.

Before I go write the hook script I thought I'd ping the community to make
sure I wasn't missing something easier/quicker/dependable. I thought I'd
dust off my old DOS batch knowledge because I'm sick that way (and because
I'm too lazy to install Interix) and I figure any Windows people out there
with no UNIX experience might benefit from my script when I'm done.

Thanks,

Sean S
Received on Mon Jul 11 19:02:49 2005

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.