]> piware.de Git - bin.git/blob - ubuntu-mirror
9de6a6a4d3f1cb021ec208278a810aed140013fb
[bin.git] / ubuntu-mirror
1 #!/bin/sh -e
2
3 # source
4 debmirror --dist 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
5
6 # dapper binaries
7 debmirror --dist dapper,dapper-updates,dapper-security --section main,restricted --arch i386,amd64 --no-source --progress --nocleanup --method http --ignore-release-gpg --host security.ubuntu.com --exclude-deb-section translation --exclude 'linux-(tree|source|patch|doc)[^/]*\.deb' --exclude 'linux.*(386|k7|k8|xeon|server)' --exclude 'linux.*(9\.23|23\.39|25\.43|26\.47)' --exclude 'ia32-libs*' --exclude '-dbg_.*\.deb' --root ubuntu /mirror
8
9 # edgy binaries
10 debmirror --dist edgy,edgy-updates,edgy-security --section main --arch amd64 --no-source --progress --nocleanup --method http --ignore-release-gpg --host de.archive.ubuntu.com --exclude-deb-section translation --exclude-deb-section kde --exclude 'linux-(tree|source|patch|doc)[^/]*\.deb' --exclude 'linux.*(k8|xeon|server)' --exclude '-dbg_.*\.deb' --root ubuntu /mirror
11
12 cat <<EOF | python
13 import sys
14 sys.path.append('/home/martin/ubuntu/ddeb-retriever/')
15 import archive_tools
16
17 archive_tools.archive_cleanup('/mirror')
18 EOF