[BACK]Return to MirrorOpenBSD CVS log [TXT][DIR] Up to [local] / openbsd / OpenBSDTorrents

Annotation of openbsd/OpenBSDTorrents/MirrorOpenBSD, Revision 1.4

1.1       andrew      1: #!/bin/sh
1.4     ! andrew      2: # $RedRiver: MirrorOpenBSD,v 1.3 2007/02/07 23:09:05 andrew Exp $
1.1       andrew      3:
                      4: . /etc/OpenBSDTorrents.conf
                      5:
                      6: cd ${OBT_DIR_HOME}
                      7: PIDFILE=${OBT_DIR_HOME}/run/mirror.pid
                      8:
                      9: if [ -e ${PIDFILE} ]; then
                     10:        PID=`head -1 ${PIDFILE}`
                     11:        kill -0 ${PID} 2> /dev/null
                     12:        if [ $? -eq 0 ]; then
                     13:                echo Already running
                     14:                exit 1
                     15:        fi
                     16: fi
                     17: echo $$ > ${PIDFILE}
                     18:
1.2       andrew     19: SERVER=rsync://openbsd.mirrors.tds.net/OpenBSD
                     20: #SERVER=rsync://ftp3.usa.openbsd.org/ftp/
1.1       andrew     21:
1.4     ! andrew     22: rsync -az \
        !            23:        --delete --delete-excluded \
1.2       andrew     24:        --verbose=1 --log-format="%o \`%f'%L %b %l" \
1.3       andrew     25:        -f "exclude .*" \
1.2       andrew     26:        -f "exclude ls-lR.gz" \
                     27:        -f "exclude /OpenBGPD/" \
                     28:        -f "exclude /OpenNTPD/" \
                     29:        -f "exclude /OpenSSH/" \
                     30:        -f "exclude /cvs/" \
                     31:        -f "exclude /src/" \
                     32:        -f "exclude /distfiles/" \
                     33:        -f "exclude /patches/" \
                     34:        -f "exclude /snapshots/packages/" \
                     35:        -f "exclude /2\.?/" \
1.4     ! andrew     36:        -f "exclude /3\.?/" \
1.2       andrew     37:        ${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME}
1.1       andrew     38:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>