misc:ubuntu-sync
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/
misc/ubuntu-sync.txt · Last modified: 2008/10/21 16:26 by 131.188.34.55