version 1.3, 2007/02/07 23:09:05 |
version 1.7, 2009/10/21 19:04:59 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: MirrorOpenBSD,v 1.2 2006/11/06 23:22:22 andrew Exp $ |
# $RedRiver: MirrorOpenBSD,v 1.6 2009/10/20 19:05:58 andrew Exp $ |
|
|
. /etc/OpenBSDTorrents.conf |
. /etc/OpenBSDTorrents.conf |
|
|
|
|
fi |
fi |
echo $$ > ${PIDFILE} |
echo $$ > ${PIDFILE} |
|
|
SERVER=rsync://openbsd.mirrors.tds.net/OpenBSD |
SERVER=rsync://ftp3.usa.openbsd.org/ftp/ |
#SERVER=rsync://ftp3.usa.openbsd.org/ftp/ |
#SERVER=rsync://ftp5.usa.openbsd.org/ftp/ |
|
#SERVER=rsync://openbsd.mirrors.tds.net/OpenBSD |
|
#SERVER=rsync://openbsd.mirror.frontiernet.net/OpenBSD |
|
|
rsync -az --delete --delete-excluded \ |
# --dry-run \ |
--verbose=1 --log-format="%o \`%f'%L %b %l" \ |
rsync -a \ |
|
--delete --delete-excluded \ |
|
--verbose=1 --log-format="%t [%p] %o %f %l" \ |
-f "exclude .*" \ |
-f "exclude .*" \ |
-f "exclude ls-lR.gz" \ |
-f "exclude ls-lR.gz" \ |
-f "exclude /OpenBGPD/" \ |
-f "exclude /OpenBGPD/" \ |
|
|
-f "exclude /distfiles/" \ |
-f "exclude /distfiles/" \ |
-f "exclude /patches/" \ |
-f "exclude /patches/" \ |
-f "exclude /snapshots/packages/" \ |
-f "exclude /snapshots/packages/" \ |
-f "exclude /2\.?/" \ |
-f "exclude /[23].?/" \ |
-f "exclude /3\.[0-8]/" \ |
-f "exclude /4.[01234]/" \ |
|
-f "exclude /4.[789]/packages/" \ |
${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME} |
${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME} |
|
|