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

Annotation of openbsd/OpenBSDTorrents/MirrorOpenBSD, Revision 1.6

1.1       andrew      1: #!/bin/sh
1.5       andrew      2: # $RedRiver: MirrorOpenBSD,v 1.4 2007/10/01 20:17:23 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.6     ! andrew     19: SERVER=rsync://ftp3.usa.openbsd.org/ftp/
        !            20: #SERVER=rsync://ftp5.usa.openbsd.org/ftp/
        !            21: #SERVER=rsync://openbsd.mirrors.tds.net/OpenBSD
        !            22: #SERVER=rsync://openbsd.mirror.frontiernet.net/OpenBSD
        !            23:
        !            24: #      --dry-run \
        !            25: rsync -a \
        !            26:        --delete --delete-excluded \
        !            27:        --verbose=1 --log-format="%t [%p] %o %f %l" \
        !            28:        -f "exclude .*" \
        !            29:        -f "exclude ls-lR.gz" \
        !            30:        -f "exclude /OpenBGPD/" \
        !            31:        -f "exclude /OpenNTPD/" \
        !            32:        -f "exclude /OpenSSH/" \
        !            33:        -f "exclude /cvs/" \
        !            34:        -f "exclude /src/" \
        !            35:        -f "exclude /distfiles/" \
        !            36:        -f "exclude /patches/" \
        !            37:        -f "exclude /snapshots/packages/" \
        !            38:        -f "exclude /2.?/" \
        !            39:        -f "exclude /3.?/" \
        !            40:        -f "exclude /4.[01234]/" \
        !            41:        -f "exclude /4.7/packages/" \
        !            42:        ${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME}
        !            43:

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