RH List Fellows:

I use the following shell script that I invoke at the command line that "bulk" updates my production web server (windoze 2k + cygwin) via ssh on my staging server (rhl8)

#!/bin/sh
#
# rsync -rtplzv --delete -e ssh ./stage-docroot \
# [EMAIL PROTECTED]:/cygdrive/c/usr/local/apache2/htdocs/prod-docroot

I would like to make this a little more robust and either:

1. accept an argument that specifies the "current directory" only
2. rsync the current directory only and take a switch to due recursive rsync.


I'm a scripting newbie. I suspect that I could do the first option by simply stating:

# rsync -rtplzv --delete -e ssh $1 \
# [EMAIL PROTECTED]:/cygdrive/c/usr/local/apache2/htdocs/prod-docroot

Thus at the command line I could invoke: % ./rsyncProd.sh .

But this limits me by forcing recursive rsync'ing as it is stated in the command line.

Any suggestions? Thanks a bunch!

Tim



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to