如何建立 debian 鏡像站
請將底下指令寫成 getdeb.sh
HOST=opensource.nchc.org.tw
METHOD=http # http, rsync, https
#echo "Don't do this in india"
#exit
debmirror \
--arch=i386,amd64,armhf,arm64 \
--dist=bullseye,buster,buster-updates,buster-backports\
--di-arch=i386,amd64,armhf,arm64 \
--di-dist=stable,unstable \
--host=$HOST \
--root=":debian" \
--diff=none -p \
--nosource \
--method=$METHOD \
--ignore-missing-release \
--ignore-release-gpg \
--ignore-small-errors \
--section main,contrib,non-free \
--i18n \
--ignore-release-gpg /home/ftp/debian/ ;