2 # $Id: mkdebmirror 4018 2006-09-25 12:13:17Z lange $
3 # Thomas Lange, lange@informatik.uni-koeln.de, (c) 2001-2005
4 # create partitial debian mirror using command debmirror(1) and rsync
6 # - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9 rsync --delete -av $2::debian/dists/$1/main/disks-$arch $destdir/debian/dists/$1/main/
11 # - - - - - - - - - - - - - - - - - - - - - - - - - - - -
13 # update local mirror from a host
15 defopt="$allopt --host=$host --dist=$dist"
16 echo "------------------ create mirror for debian ------------------"
17 debmirror --getcontents $destdir/debian $defopt
20 # - - - - - - - - - - - - - - - - - - - - - - - - - - - -
22 # here you have to adjust the hostnames of the mirror and the names of the distributions
26 # dist=etch,etch-proposed-updates
27 destdir=/var/www/debian_mirror
28 allopt="$debug --ignore-missing-release --ignore-release-gpg --passive --nosource --arch=$arch --ignore=disks-$arch/"
30 # first sync from a mirror near to you!
31 # please ask the mirror admin(s) for permission before downloading
33 update_from ftp.de.debian.org
35 # since this mirror is not always up to date, sync the rest from an official mirror
36 # update_from ftp.de.debian.org
38 # even one should not mirror the security site, but I will do it.
39 echo "------------------ create mirror for debian-security ------------------"
40 debmirror $destdir/debian-security $allopt --host=security.debian.org -r debian-security --section main,contrib,non-free -d etch/updates
42 # get installation disk images via rsync
43 #rsync_disks etch ftp2.de.debian.org