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

Annotation of openbsd/OpenBSDTorrents/MirrorOpenBSD, Revision 1.13

1.1       andrew      1: #!/bin/sh
1.12      andrew      2: # $RedRiver: MirrorOpenBSD,v 1.11 2011/03/31 02:21:39 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
1.9       andrew     13:                echo $0 Already running
1.1       andrew     14:                exit 1
                     15:        fi
                     16: fi
                     17: echo $$ > ${PIDFILE}
                     18:
1.11      andrew     19: #SERVER=rsync://ftp3.usa.openbsd.org/ftp/
                     20: SERVER=rsync://ftp5.usa.openbsd.org/ftp/
1.6       andrew     21: #SERVER=rsync://openbsd.mirrors.tds.net/OpenBSD
                     22: #SERVER=rsync://openbsd.mirror.frontiernet.net/OpenBSD
1.8       andrew     23: #SERVER=rsync://mirror.rit.edu/OpenBSD/
1.10      andrew     24: #SERVER=rsync://filedump.se.rit.edu/OpenBSD/
                     25: #SERVER=rsync://mirror.planetunix.net/OpenBSD/
1.12      andrew     26: #SERVER=rsync://mirror.team-cymru.org/OpenBSD/
1.6       andrew     27:
1.13    ! andrew     28:        #--dry-run \
1.6       andrew     29: rsync -a \
1.10      andrew     30:        --delete \
                     31:         --delete-excluded \
1.6       andrew     32:        --verbose=1 --log-format="%t [%p] %o %f %l" \
                     33:        -f "exclude .*" \
                     34:        -f "exclude ls-lR.gz" \
                     35:        -f "exclude /OpenBGPD/" \
                     36:        -f "exclude /OpenNTPD/" \
                     37:        -f "exclude /OpenSSH/" \
                     38:        -f "exclude /cvs/" \
                     39:        -f "exclude /src/" \
                     40:        -f "exclude /distfiles/" \
                     41:        -f "exclude /patches/" \
1.10      andrew     42:        -f "exclude */Changelogs/" \
1.6       andrew     43:        -f "exclude /snapshots/packages/" \
1.13    ! andrew     44:        -f "exclude /[234].?/" \
        !            45:        -f "exclude /5.[023456789]/packages/" \
        !            46:        -f "exclude /5.2/**.tgz" \
1.6       andrew     47:        ${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME}
1.13    ! andrew     48:
        !            49:        #-f "exclude /5.[0]/" \

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