Annotation of openbsd/OpenBSDTorrents/MirrorOpenBSD, Revision 1.1
1.1 ! andrew 1: #!/bin/sh
! 2: # $RedRiver$
! 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:
! 19: SERVER=ftp://ftp3.usa.openbsd.org/pub/${OBT_BASENAME}
! 20:
! 21: lftp -c "mirror --delete \
! 22: --verbose=1 \
! 23: -x ls-lR.gz \
! 24: -x \.mirror\..* \
! 25: -x /\..* \
! 26: -x ^OpenBGPD/ \
! 27: -x ^OpenNTPD/ \
! 28: -x ^OpenSSH/ \
! 29: -x ^cvs/ \
! 30: -x ^src/ \
! 31: -x ^src.tar.gz \
! 32: -x ^srcsys.tar.gz \
! 33: -x ^distfiles/ \
! 34: -x ^snapshots/packages/ \
! 35: -x ^(patches/)?2\../ \
! 36: -x ^(patches/)?3\.0/ \
! 37: -x ^(patches/)?3\.1/ \
! 38: -x ^(patches/)?3\.2/ \
! 39: -x ^(patches/)?3\.3/ \
! 40: -x ^(patches/)?3\.4/ \
! 41: -x ^(patches/)?3\.5/ \
! 42: -x ^(patches/)?3\.6/ \
! 43: -x ^(patches/)?3\.7/ \
! 44: ${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME}"
! 45:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>