2006/2/7, Do Hong Minh <[EMAIL PROTECTED]>:
Mo.i ngu+o+`i o+i, muo^'n mirror ca? site (hoa(.c mo^.t thu+ mu.c tre^n site) thi` co' the^? du`ng ca'i gi` la` tie^.n nha^'t.

Nếu cần mirror một cái Debian archive nào thì nhất là debmirror.

Còn về website bình thường thì dùng wget.
#!/bin/sh
DIR="/srv/mirror/debian"
#OPT="--ignore-release-gpg --ignore-small-errors --ignore-missing-release"
OPT="--nosource --md5sums --verbose $@"

debmirror "${DIR}/security" --host=security.debian.org \
        --method=http --root=/debian-security --dist=sarge/updates \
        --section=main,contrib,non-free $OPT
mkdir -p "${DIR}/security/.disk"
echo "updates/main updates/contrib updates/non-free" 
>"${DIR}/security/.disk/base_components"
echo "Debian GNU/Linux 3.1 _Sarge_ - Security Updates ($(date +%Y%m%d))" 
>"${DIR}/security/.disk/info"

Trả lời cho