On Mon, Sep 08, 2003 at 09:52:32AM +0200, Arnt Karlsen wrote: > ..in my mirror I like main, non-US, non-free and contrib for > Woody/3.0r1. So I try to script a mirror for i386 Woody, > should make a nice 4.2 GB mirror, how do I exclude the rest > of the about 80 GB?:
use debmirror. Package: debmirror Priority: extra Section: net Installed-Size: 44 Maintainer: Goswin von Brederlow <[EMAIL PROTECTED]> Version: 20030829 Depends: libnet-perl, libdigest-md5-perl, liblockfile-simple-perl, rsync, libcompress-zlib-perl Description: Debian partial mirror script, with ftp and package pool support This program downloads and maintains a partial local Debian mirror. It can mirror any combination of architectures, distributions and sections. Files are transferred by ftp, and package pools are fully supported. It also does locking and updates trace files. i use it like so: ---cut here--- #! /bin/bash LOGFILE=/var/log/debmirror.log HOST="" # the host to mirror debian from ARGS="--debug --progress --nosource --dist=unstable --arch=i386 --getcontents" savelog $LOGFILE debmirror /home/ftp/debian $ARGS --exclude='(kernel-(image|headers)|pcmcia-modules|alsa-modules)' --exclude='kernel-patch-2\..*-(ia64|m68k|arm|mips|s390|powerpc)' --include='(kernel-(image|headers)|pcmcia-modules|alsa-modules)-.*-386.*\.deb' --exclude="openoffice\.org-l10n.*\.deb" --include="openoffice\.org-l10n-en_.*\.deb" --host $HOST >$LOGFILE 2>&1 debmirror /home/ftp/debian-non-US $ARGS --exclude="openoffice\.org-l10n.*\.deb" --include="openoffice\.org-l10n-en_.*\.deb" --host $HOST -r /debian-non-US -s non-US/main,non-US/contrib,non-US/non-free >>$LOGFILE 2>&1 ---cut here--- du for my unstable mirror: 6830316 /home/ftp/debian 7668 /home/ftp/debian-non-US craig -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

