#! /bin/bash export PATH=/home/debian/bin:$PATH # abort script of something goes wrong set -e # options to give debmirror, see it's documentation for more details # --md5sums: checksum local files and compare to Packages.gz list # --progress 10240: print hash marks every 10240 bytes of ftp transfer # --nocleanup: don't actually delete local files you want to. # --getcontents: pull the Contents.gz files too. # --debug: be verbose about what's happening SPECS="--md5sums --nocleanup --debug --progress 10240 -a i386 --nosource --getcontents" SPECS="-a i386 --nosource --getcontents" # what mirror program you want to run MIRROR="debmirror" # base directory you want the mirror put BASE=/home/debian/mirror $MIRROR $SPECS $BASE \ -d woody -h ftp.keystealth.org \ --ignore=non-US/ --ignore=debian-security/ \ --ignore=dists/woody/main/disks-i386/ $MIRROR $SPECS $BASE/non-US \ -d woody/non-US -h mirror.csit.fsu.edu -r /debian-non-US \ -s main,contrib,non-free $MIRROR $SPECS $BASE/debian-security --nogetcontents \ -d woody/updates -h security.debian.org -r /debian-security \ -s main,contrib,non-free