Re: lokalen mirror
On Saturday 24 August 2002 16:16, Oliver Stübbe wrote:
> Hallo
>
> Wie kann ich einen lokalen Mirror aufbauen, der sowohl einen stable als
> auch einen testing tree enthält ?
> Ich baue zur Zeit mit apt-move meinen lokalen Mirror.
ich verwende folgendes Skript mit debmirror:
#!/bin/sh
# Konfiguration
DEB_MIRROR=/exports/mirrors/debian
DEB_MIRROR_NONUS=/exports/mirrors/debian-non-US
DEB_MIRROR_PROPOSED=/exports/mirrors/debian-proposed
DEB_MIRROR_SEC=/exports/mirrors/debian-security
DEB_HOST=ftp.de.debian.org
DEB_ROOT=:debian
DEB_ROOT_NONUS=:debian-non-US
DEB_ROOT_SEC=:debian-security
DEB_ARCH=i386
DEB_DIST=woody
DEB_OPT="--debug --progress --nosource --method=rsync"
# Spiegeln der Bootdisketten
rsync_disks() {
rsync --delete -av $DEB_HOST::debian/dists/$1/main/disks-$DEB_ARCH \
$DEB_MIRROR/dists/$1/main/ --progress
}
# Proposed
debmirror $DEB_MIRROR_PROPOSED --host=$DEB_HOST --arch=$DEB_ARCH \
--dist=$DEB_DIST-proposed-updates $DEB_OPT
--ignore="disks-$DEB_ARCH/" \
--root=$DEB_ROOT
# Non-US
debmirror $DEB_MIRROR_PROPOSED-non-US --host=$DEB_HOST --arch=$DEB_ARCH \
--dist=$DEB_DIST-proposed-updates $DEB_OPT --root=$DEB_ROOT_NONUS \
--section="non-US/main,non-US/contrib,non-US/non-free"
# Hauptmirror
debmirror $DEB_MIRROR --host=$DEB_HOST --arch=$DEB_ARCH \
--dist=$DEB_DIST $DEB_OPT --ignore="disks-$DEB_ARCH/" \
--root=$DEB_ROOT
# Non-US
debmirror $DEB_MIRROR_NONUS --host=$DEB_HOST --arch=$DEB_ARCH \
--dist=$DEB_DIST $DEB_OPT --root=$DEB_ROOT_NONUS \
--section="non-US/main,non-US/contrib,non-US/non-free"
# Secrity
debmirror $DEB_MIRROR_SEC --host=security.debian.org --arch=$DEB_ARCH \
--dist=woody $DEB_OPT --root=$DEB_ROOT_SEC \
--section="updates/main,updates/contrib,updates/non-free"
# Disks
rsync_disks woody
# rsync_disks sid
rsync --delete -av $DEB_HOST::debian/tools
rsync --delete -av $DEB_HOST::debian/doc
rsync --delete -av $DEB_HOST::debian/project
Reply to: