]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/blobdiff - fetch-scripts/debian
fedora-buffet: exit with status from quick-fedora-mirror
[sipb-mirrors.git] / fetch-scripts / debian
index e29339394af37734380799c1a0de77c1e96e4cd3..0b778252b1096483c92306180280d93c1f74bda5 100644 (file)
@@ -7,22 +7,22 @@ set -u
 
 #MIRRORDIR=/ifs/mirror
 BASEDIR=${MIRRORDIR}/debian
-RSYNCSOURCE=rsync://debian.gtisc.gatech.edu/debian
+RSYNCSOURCE=rsync://debian.csail.mit.edu/debian/
 
-RSYNC_OPTS="--recursive --links --hard-links --times --sparse --hard-links --block-size=8192 --timeout 3600 --perms"
+RSYNC_OPTS="--recursive --links --safe-links --times --sparse --timeout 3600 --perms"
 #OTHER_OPTS="--verbose --stats --dry-run"
 OTHER_OPTS="--verbose --stats"
 
 # Options we only use in the first pass, where we do not want packages/sources to fly in yet and dont want to delete files
-PASS1="--exclude Packages\* --exclude Sources\* --exclude Release\* --exclude ls-lR\*"
+PASS1=(--include \*.diff --exclude \*.diff/Index --exclude Packages\* --exclude Sources\* --exclude Release\* --exclude InRelease --include i18n/by-hash --exclude i18n/\* --exclude ls-lR\* --exclude Translation\*)
 # Options for the second pass, where we do want everything, including deletion of old and now unused files
-PASS2="--max-delete=40000 --delay-updates --delete --delete-after --delete-excluded --exclude \"project/trace/${HOSTNAME}\""
+PASS2="--max-delete=40000 --delay-updates --delete --delete-delay --delete-excluded --exclude \"project/trace/${HOSTNAME}\""
 
 # The temp directory used by rsync --delay-updates is not
 # world-readable remotely. Always exclude it to avoid errors. 
 EXCLUDE="--exclude .~tmp~/"
 
-rsync ${RSYNC_OPTS} ${OTHER_OPTS} ${PASS1} ${EXCLUDE} ${RSYNCSOURCE} ${BASEDIR}
+rsync ${RSYNC_OPTS} ${OTHER_OPTS} "${PASS1[@]}" ${EXCLUDE} ${RSYNCSOURCE} ${BASEDIR}
 rsync ${RSYNC_OPTS} ${OTHER_OPTS} ${PASS2} ${EXCLUDE} ${RSYNCSOURCE} ${BASEDIR}
 
 mkdir -p ${BASEDIR}/project/trace