]> piware.de Git - bin.git/blob - ubuntu-mirror
463b9a6cde0fc06441cccbc011a7344e421af657
[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 --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 'ia32-libs*' --exclude '-dbg_.*\.deb' --root ubuntu /mirror
11
12 # do not clean up while we don't have all of edgy
13 exit 0
14
15 cat <<EOF | python
16 import sys
17 sys.path.append('/home/martin/ubuntu/ddeb-retriever/')
18 import archive_tools
19
20 archive_tools.archive_cleanup('/mirror')
21 EOF