Hi Michael,

Take a look at rsync, http://www.rsync.org/, I think you'll find it very useful.  I've 
been using it for several months now to do software releases to the production boxes 
for one of our websites with excellent results.

Here's our production install script:

#!/bin/sh

################################################################################
##
## Filename: prod_install.sh
##
## Author:   Damian M. Wiest, <[EMAIL PROTECTED]> 
##
## Usage:    sh ./prod_install.sh
##
## Version:  $Id: prod_install.sh,v 1.5 2001/10/18 21:38:13 atg Exp $
##
## Purpose:
##
##    This script is responsible for executing installations of the foo.com
##    project onto the production systems.  We use rsync to compare files and
##    transfer only the necessary changes.
##
################################################################################

# Define some useful vars.
PATH=$PATH:/usr/local/bin
OPTS='--checksum --verbose --times --links --recursive --delete --compress --rsh=ssh 
--progress --cvs-exclude'
DEST_DIR='foo@bar:/servers/monk'

# Synchronize the project's files
rsync ${OPTS} dist/lib/myLCI.jar ${DEST_DIR}
rsync ${OPTS} dist/lib/rvw.jar ${DEST_DIR}
rsync ${OPTS} dist/lib/CommonConfig.jar ${DEST_DIR}
rsync ${OPTS} dist/lib/MonkConfig.jar ${DEST_DIR}
rsync ${OPTS} doc ${DEST_DIR}
rsync ${OPTS} images ${DEST_DIR}

-Damian


>Message: 2
>From: "Michael L. Hostbaek" <[EMAIL PROTECTED]>
>Subject: Re: What is the true use ?
>Date: 22 Nov 2001 18:33:36 GMT
>Organization: TDC Internet
>To: [EMAIL PROTECTED]
>
>[snip]
>
>What I find a bit boring with *my* current configuration, is that when I
>have been working on my checkout version, and commited. Then I am forced
>to do an export and then cp -R the stuff to docroot. - There must be an
>easier way ? Maybe a Makefile that does the stuff for me ? So after
>commting, I go to docroot and type "make" - and then my docroot is
>up-to-date.
>
>However, since there are a few dir's that are not in my cvsrep, (e.g.
>mrtg, webalizer, etc etc) - I need the Makefile to check for "flagged"
>file/dir names, cause if someone commits a dir called 'mrtg', then when
>I do an export - well, then I am screwed ;)


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to