RE: svn export question
From: Stephen Warren <swarren_at_paramanet.com>
Date: 2004-04-20 20:48:55 CEST
> From: Henderson, Michael D [mailto:michael.d.henderson@lmco.com]
you can export into a temporary "staging" directory, then swap the staging into the production location. I use the script below.
There is a tiny window where the "production/xxx" directory doesn't exist, but I feel that's better than having a larger window where "svn export" is half way through updating the "production/xxx" directory and hence it's in an inconsistent state.
#!/bin/sh
website=$1
cd /usr/local/apache-2.0.49/htdocs
echo @@@@@ Removing old staging directory
rm -rf staging/$website
echo @@@@@ Pulling files from SVN
svn --username xxxxx export https://server:443/repos/$website/ staging/$website
staging/$website/script/post_staging_export.sh
echo @@@@@ Promoting staging to production
rm -rf production-old/$website
-- Stephen Warren, Software Engineer, Parama Networks, San Jose, CA http://www.wwwdotorg.org/work_contact/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Tue Apr 20 20:50:45 2004 |
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.