1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh set -eu mirror_root="$1" debmirror \ --no-check-gpg \ --host=ftp.fi.debian.org \ --method=http \ --rsync-extra=trace \ --arch=amd64 \ --getcontents \ --dist=stable \ -v \ "$mirror_root" echo "Finished mirroring Debian"