Yo lo tengo asi

#!/bin/sh#Mirror-Debian LennyDISTRO=lenny
HOST=mirror.debian.es/debian_lenny
DESTDIR=/home/ftp/debian
SECTION=main,contrib,non-free
#PROXY=http://user:pass@ipproxy:3128/#--proxy=$PROXY \debmirror -v -p -m \
--arch=i386 \
--passive \
--nosource \
--postcleanup \
--method=http \
--host=$HOST \
--root=/ \
--timeout=1800 \
--dist=$DISTRO \
--section=$SECTION \
--ignore-release-gpg \
--pdiff=none \
$DESTDIR

Responder a