]> piware.de Git - bin.git/blob - ubuntu-mirror
initial checkin
[bin.git] / ubuntu-mirror
1 #!/bin/sh -e
2 debmirror --dist hoary,hoary-updates,hoary-security,breezy,breezy-updates,breezy-security,dapper,dapper-updates,dapper-security --section main,restricted --arch none --source --progress --nocleanup --method http --ignore-release-gpg --host archive.ubuntu.com --exclude-deb-section translation --exclude 'openoffice.*amd.*tar.gz' --exclude 'ia32-libs*' --root ubuntu /mirror
3
4 #debmirror --dist dapper --section main,restricted --arch i386 --no-source --progress --nocleanup --method http --ignore-release-gpg --host archive.ubuntu.com --exclude-deb-section translation --root ubuntu /mirror
5 debmirror --dist breezy,breezy-updates,breezy-security,dapper,dapper-updates,dapper-security --section main,restricted --arch amd64 --no-source --progress --nocleanup --method http --ignore-release-gpg --host archive.ubuntu.com --exclude-deb-section translation --exclude 'linux-(image|headers|source|patch|doc).*\.deb' --exclude 'ia32-libs*' --root ubuntu /mirror
6
7 ORPHANS=`mirror-orphans`
8 if [ -n "$ORPHANS" ]; then
9     echo ----------------------
10     echo Orphans:
11     /bin/echo -e "$ORPHANS"
12     read -p 'ok to remove? [y/N] ' a
13     if [ "$a" = y ]; then
14         rm -f $ORPHANS
15     fi
16 fi