Cette page présente le miroir mis en place au BAP.
Il s'agit essentiellement de la technique présentée sur ZAP/Configuration/Miroir avec un script un soupçon différent.
Le script /usr/local/sbin/srv-mirror-ubuntu utilisé ici :
#!/bin/bash # Depends: debmirror rsync [ "$(id -u)" = 0 ] && exec su -s /bin/bash mirror -c "\"$0\" $@" DIR="/srv/mirror/ubuntu" #OPT="${OPT} --ignore-small-errors --md5sums --verbose ${OPT}" OPT="${OPT} --exclude=.*-dbg_.*.deb --exclude=.*-debug[-_].*.deb" OPT="${OPT} --include=.*.udeb $@" ARCH="i386" DIST="hardy,intrepid" DIST_SECURITY="hardy,intrepid" DIST_HANOILUG="hardy,intrepid" DIST_MEDIBUNTU="hardy,intrepid" DIST_BACKPORTS="hardy,intrepid" mkdir -p "${DIR}" || exit -1 debmirror "${DIR}/security" \ --host=virror.hanoilug.org --method=http --root=/ubuntu/security \ --dist=${DIST_SECURITY//,/-security,}-security \ --section=main,restricted,universe,multiverse \ --arch=${ARCH} --nosource --postcleanup ${OPT} debmirror "${DIR}/hanoilug" \ --host=virror.hanoilug.org --method=http --root=/ubuntu/hanoilug \ --dist=${DIST_HANOILUG} \ --section=contrib,import,experimental \ --arch=${ARCH} --nosource --cleanup ${OPT} debmirror "${DIR}/medibuntu" \ --host=virror.hanoilug.org --method=http --root=/ubuntu/medibuntu \ --dist=${DIST_MEDIBUNTU} \ --section=free,non-free \ --arch=${ARCH} --nosource --cleanup ${OPT} debmirror "${DIR}/archive" \ --host=virror.hanoilug.org --method=http --root=/ubuntu/archive \ --dist=${DIST},${DIST_SECURITY//,/-updates,}-updates,${DIST_BACKPORTS//,/-backports,}-backports \ --section=main,restricted,universe,multiverse,main/debian-installer,restricted/debian-installer \ --arch=${ARCH} --nosource --cleanup ${OPT} exit 0