From c45974c0bf847b77ba7db15c23e384802e5eeeda Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Wed, 3 Apr 2024 18:13:41 +0700 Subject: [PATCH] Update debian stage1 rsync options Updated almost 3 years ago, cf. https://salsa.debian.org/mirror-team/archvsync/-/merge_requests/2 The ref mentioned in the code is still good, so you can compare this MR with what's currently in ftpsync: https://salsa.debian.org/mirror-team/archvsync/-/blob/master/bin/ftpsync#L431 Thanks --- worker/two_stage_rsync_provider.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/worker/two_stage_rsync_provider.go b/worker/two_stage_rsync_provider.go index 7063991..5efd87c 100644 --- a/worker/two_stage_rsync_provider.go +++ b/worker/two_stage_rsync_provider.go @@ -36,7 +36,20 @@ type twoStageRsyncProvider struct { // ref: https://salsa.debian.org/mirror-team/archvsync/-/blob/master/bin/ftpsync#L431 var rsyncStage1Profiles = map[string]([]string){ - "debian": []string{"--include=*.diff/", "--exclude=*.diff/Index", "--exclude=Packages*", "--exclude=Sources*", "--exclude=Release*", "--exclude=InRelease", "--include=i18n/by-hash", "--exclude=i18n/*", "--exclude=ls-lR*"}, + "debian": []string{ + "--include=*.diff/", + "--include=by-hash/", + "--exclude=*.diff/Index", + "--exclude=Contents*", + "--exclude=Packages*", + "--exclude=Sources*", + "--exclude=Release*", + "--exclude=InRelease", + "--exclude=i18n/*", + "--exclude=dep11/*", + "--exclude=installer-*/current", + "--exclude=ls-lR*", + }, "debian-oldstyle": []string{ "--exclude=Packages*", "--exclude=Sources*", "--exclude=Release*", "--exclude=InRelease", "--exclude=i18n/*", "--exclude=ls-lR*", "--exclude=dep11/*",