===== Sync script for updating an ubuntu/debian mirror ===== #!/bin/sh set -e # script to update local ubuntu mirror # in order to debug problems, run this script with --verbose --progress MIRRORROOT=/srv/mirror GNUPGHOME=${MIRRORROOT}/gnupghome export GNUPGHOME if ! [ -d $GNUPGHOME ]; then mkdir $GNUPGHOME fi DISTS="hardy,hardy-updates,hardy-security,intrepid,intrepid-updates,intrepid-security" ARCHS="i386,amd64" debmirror --postcleanup $* \ -a $ARCHS \ -d $DISTS \ -s main,restricted,universe,multiverse \ --method http -h de.archive.ubuntu.com -r ubuntu \ ${MIRRORROOT}/ubuntu/