-
Notifications
You must be signed in to change notification settings - Fork 0
/
mirstretch
executable file
·41 lines (34 loc) · 1013 Bytes
/
mirstretch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# sourcehost: choose a mirror in your proximity!
HOST=debian.inf.tu-dresden.de;
# destination directory
DEST=/mnt/disk/volume1/myweb/mirror/stretch
# Debian version(s) to mirror
DIST=stretch,buster,sid,stretch-updates,buster-updates
# architecture
ARCH=amd64,i386
# log timestamp
logger -t mirror[$$] updating Debian mirror
su mirror -c \
"debmirror ${DEST} \
--slow-cpu \
--allow-dist-rename \
--getcontents \
--nosource \
--host=${HOST} \
--root=debian/ \
--dist=${DIST} \
--section=main,contrib,non-free,main/debian-installer,main/installer-i386,main/installer-amd64 \
--arch=${ARCH} \
--method=rsync \
--i18n \
--include='/Translation-de.*' \
--include='/Translation-en.*' \
--exclude='/Translation-.*' \
--rsync-options '-aIL --partial --bwlimit=400' \
--nocleanup \
--progress \
--di-dist=stretch,buster,sid \
--di-arch=i386,amd64 \
--rsync-extra=doc,tools,trace >>/mnt/disk/volume1/logs/debmirror.log 2>&1"
logger -t mirror[$$] finished updating Debian mirror