Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (37 sloc) 1.697 kb
357aecc Update of grml_cd stuff, several new files and features
grml User authored
1 #!/bin/sh
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
5
6 # - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7 rsync_disks() {
8 # get the boot disks
9 rsync --delete -av $2::debian/dists/$1/main/disks-$arch $destdir/debian/dists/$1/main/
10 }
11 # - - - - - - - - - - - - - - - - - - - - - - - - - - - -
12 update_from() {
13 # update local mirror from a host
14 host=$1
15 defopt="$allopt --host=$host --dist=$dist"
16 echo "------------------ create mirror for debian ------------------"
17 debmirror --getcontents $destdir/debian $defopt
18 }
19
20 # - - - - - - - - - - - - - - - - - - - - - - - - - - - -
21 # main program
22 # here you have to adjust the hostnames of the mirror and the names of the distributions
23 debug="$@"
24 arch=i386
25 dist=etch
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/"
29
30 # first sync from a mirror near to you!
31 # please ask the mirror admin(s) for permission before downloading
32 # several GB of data!
96dd50b @mika Switch from http.debian.net to ftp.debian.org
mika authored
33 update_from ftp.debian.org
357aecc Update of grml_cd stuff, several new files and features
grml User authored
34
35 # since this mirror is not always up to date, sync the rest from an official mirror
96dd50b @mika Switch from http.debian.net to ftp.debian.org
mika authored
36 # update_from ftp.debian.org
357aecc Update of grml_cd stuff, several new files and features
grml User authored
37
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
41
42 # get installation disk images via rsync
43 #rsync_disks etch ftp2.de.debian.org
Something went wrong with that request. Please try again.