Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/web/rsync.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Mar 30 21:06:15 2004 UTC (20 years ago) by orrisroot
Branch: MAIN
File MIME type: text/x-sh
added mirror script.

1 #!/bin/sh
2 RSYNC=/usr/local/bin/rsync
3 RSYNC_OPTS="-rlvzC --delete"
4 RSYNC_RSH=ssh
5 SRC=`dirname $0`/htdocs
6 DSTDIR=/home/groups/s/sa/satellite
7 SFJP_SHELL_HOSTNAME=sf-usr-shell
8 SFJP_HOST=shell.sourceforge.jp
9
10 if [ `hostname -s` = $SFJP_SHELL_HOSTNAME ]; then
11 DST=$DSTDIR
12 else
13 DST=$SFJP_HOST:$DSTDIR
14 fi
15
16 if [ ! -d $SRC ]; then
17 echo "error : no web contents on $SRC"
18 exit 1;
19 fi
20 $RSYNC $RSYNC_OPTS $SRC $DST

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26