version 1.11, 2011/03/31 03:21:39 |
version 1.13, 2012/09/01 17:37:07 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: MirrorOpenBSD,v 1.10 2010/05/19 22:18:02 andrew Exp $ |
# $RedRiver: MirrorOpenBSD,v 1.11 2011/03/31 02:21:39 andrew Exp $ |
|
|
. /etc/OpenBSDTorrents.conf |
. /etc/OpenBSDTorrents.conf |
|
|
|
|
#SERVER=rsync://mirror.rit.edu/OpenBSD/ |
#SERVER=rsync://mirror.rit.edu/OpenBSD/ |
#SERVER=rsync://filedump.se.rit.edu/OpenBSD/ |
#SERVER=rsync://filedump.se.rit.edu/OpenBSD/ |
#SERVER=rsync://mirror.planetunix.net/OpenBSD/ |
#SERVER=rsync://mirror.planetunix.net/OpenBSD/ |
|
#SERVER=rsync://mirror.team-cymru.org/OpenBSD/ |
|
|
# --dry-run \ |
#--dry-run \ |
rsync -a \ |
rsync -a \ |
--delete \ |
--delete \ |
--delete-excluded \ |
--delete-excluded \ |
|
|
-f "exclude /patches/" \ |
-f "exclude /patches/" \ |
-f "exclude */Changelogs/" \ |
-f "exclude */Changelogs/" \ |
-f "exclude /snapshots/packages/" \ |
-f "exclude /snapshots/packages/" \ |
-f "exclude /[23].?/" \ |
-f "exclude /[234].?/" \ |
-f "exclude /4.[0123456]/" \ |
-f "exclude /5.[023456789]/packages/" \ |
-f "exclude /4.[79]/packages/" \ |
-f "exclude /5.2/**.tgz" \ |
${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME} |
${SERVER} ${OBT_DIR_FTP}/${OBT_BASENAME} |
|
|
|
#-f "exclude /5.[0]/" \ |