#!/bin/sh

# Repertoire cible, site source (prendre le plus proche en terme de débit) et distribution

LOCALDEST=/srv/www/miroirs/debian
SERVSOURCE=ftp.fr.debian.org
DISTRIB=lenny

# Pour choisir les options pour la création du miroir : «man debmirror»
# ou «debmirror --help»

debmirror $LOCALDEST --host=$SERVSOURCE \
        --arch=i386,amd64 --nosource --method=http \
        --root=debian --dist=$DISTRIB #ou la distrib choisie
#        --debug --progress # décommenter cette ligne pour déboguer

debmirror $LOCALDEST-security --host=security.debian.org \
        --arch=i386,amd64 --nosource --method=http \
        --root=debian-security --dist=$DISTRIB/updates \
#        --debug --progress # décommenter pour déboguer

