summaryrefslogtreecommitdiff
path: root/ansible/roles/debian-mirror/files/mirror-debian
blob: 29ff019c28276e343d07efd7a168f12db3c9de2a (plain)
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"