]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/blobdiff - fetch-scripts/ubuntu-archive
Switch to closer Ubuntu mirror
[sipb-mirrors.git] / fetch-scripts / ubuntu-archive
index 95654d7b2f9c11c4ce7b79084fbc5e7f9417466d..2e2b0937c0ee9fd430a637b2b5ffe54e61a08055 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-RSYNCSOURCE=rsync://archive.ubuntu.com/ubuntu
+RSYNCSOURCE=rsync://us.archive.ubuntu.com/ubuntu
 #RSYNCSOURCE=rsync://ubuntu.media.mit.edu/ubuntu
 BASEDIR=${MIRRORDIR}/ubuntu
 
@@ -9,11 +9,13 @@ set -v
 set -e
 set -u
 
+# 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 InRelease --exclude i18n/\* --exclude ls-lR\* --exclude Translation\*)
+
 rsync --recursive --times --links --hard-links \
       --stats \
       --verbose --timeout=600 \
-      --exclude "Packages*" --exclude "Sources*" \
-      --exclude "Release*" \
+      "${PASS1[@]}" \
       ${RSYNCSOURCE} ${BASEDIR}
 
 rsync --recursive --times --links --hard-links \