... |
... |
@@ -14,39 +14,32 @@ debmirror \ |
14
|
14
|
--nocleanup \
|
15
|
15
|
--method=rsync --user="${RSYNC_USER:?}" --host=security-master.debian.org --root=debian-security \
|
16
|
16
|
--omit-suite-symlinks \
|
17
|
|
- --dist=jessie/updates \
|
|
17
|
+ --dist=buster/updates \
|
18
|
18
|
--arch=amd64,armel,armhf,i386 \
|
19
|
19
|
--section=main,contrib,non-free,main/debian-installer,contrib/debian-installer,non-free/debian-installer \
|
20
|
20
|
--i18n --getcontents \
|
21
|
21
|
--checksums \
|
22
|
|
- --check-gpg --keyring=/usr/share/keyrings/debian-archive-stretch-security-automatic.gpg \
|
|
22
|
+ --check-gpg --keyring=/usr/share/keyrings/debian-archive-buster-security-automatic.gpg \
|
23
|
23
|
--diff=none --rsync-extra=none \
|
24
|
24
|
${ROOT:?}/debian-archive/debian-security \
|
25
|
|
- > ${logdir}/2023-02-18-debmirror-jessie-security.txt 2>&1
|
|
25
|
+ > ${logdir}/2025-06-14-debmirror-buster-security.txt 2>&1
|
|
26
|
+
|
|
27
|
+(
|
|
28
|
+ # sync dists/ stuff again to make sure by-hash/ gets imported too.
|
|
29
|
+ set -e
|
|
30
|
+ cd ${ROOT:?}/debian-archive/debian-security/dists/buster/updates
|
|
31
|
+ rm -rf main contrib non-free
|
|
32
|
+ rsync -aL ${RSYNC_USER}@security-master.debian.org::debian-security/dists/buster/updates/{main,contrib,non-free} .
|
|
33
|
+)
|
26
|
34
|
|
27
|
|
-cd ${logdir}
|
28
|
|
-debmirror \
|
29
|
|
- --progress \
|
30
|
|
- --nocleanup \
|
31
|
|
- --method=rsync --user="${RSYNC_USER:?}" --host=security-master.debian.org --root=debian-security \
|
32
|
|
- --omit-suite-symlinks \
|
33
|
|
- --dist=stretch/updates \
|
34
|
|
- --arch=amd64,arm64,armel,armhf,i386 \
|
35
|
|
- --section=main,contrib,non-free,main/debian-installer,contrib/debian-installer,non-free/debian-installer \
|
36
|
|
- --i18n --getcontents \
|
37
|
|
- --checksums \
|
38
|
|
- --check-gpg --keyring=/usr/share/keyrings/debian-archive-stretch-security-automatic.gpg \
|
39
|
|
- --diff=none --rsync-extra=none \
|
40
|
|
- ${ROOT:?}/debian-archive/debian-security \
|
41
|
|
- > ${logdir}/2023-02-18-debmirror-stretch-security.txt 2>&1
|
42
|
35
|
|
43
|
36
|
# jdupes: --order=time to get timestamp of oldest file
|
44
|
37
|
# Note: jdupes feels veeeery slow (hours): it reads beginning of all files
|
45
|
38
|
# first, but then identifying potential copies is fast. There is no feedback
|
46
|
39
|
# while it reads data.
|
47
|
40
|
cd ${ROOT}
|
48
|
|
-time jdupes --order=time --noempty --printwithsummary --recurse debian-archive > ${logdir}/2024-03-14-archive-jdupes-test.txt 2>&1
|
49
|
|
-time jdupes --order=time --noempty --linkhard --recurse debian-archive > ${logdir}/2024-03-14-archive-jdupes.txt 2>&1
|
|
41
|
+time jdupes --order=time --noempty --printwithsummary --recurse debian-archive > ${logdir}/2025-06-14-archive-jdupes-test.txt 2>&1
|
|
42
|
+time jdupes --order=time --noempty --linkhard --recurse debian-archive > ${logdir}/2025-06-14-archive-jdupes.txt 2>&1
|
50
|
43
|
|
51
|
44
|
# For later:
|
52
|
45
|
cd ${logdir}
|
... |
... |
@@ -145,4 +138,7 @@ done |
145
|
138
|
|
146
|
139
|
date > ${ROOT:?}/debian-archive/project/trace/master
|
147
|
140
|
|
|
141
|
+# as dak:
|
|
142
|
+sudo -u dak sudo -u archvsync /home/archvsync/bin/runmirrors archive
|
|
143
|
+
|
148
|
144
|
# Remind webmaster to update the corresponding pages in www.debian.org and remove stuff from packages.d.o |