From e9082f4fb259ae8e997c9bcb6b737a4a925f4b5a Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 16 Oct 2025 14:23:14 -0400 Subject: [PATCH] docs-rsync.stg: A workaround for the mtime/hardlink disk space usage. Signed-off-by: James Antill --- roles/fedora-docs/proxy/files/docs-rsync.stg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/fedora-docs/proxy/files/docs-rsync.stg b/roles/fedora-docs/proxy/files/docs-rsync.stg index 5392922c87..f0d9730d9e 100755 --- a/roles/fedora-docs/proxy/files/docs-rsync.stg +++ b/roles/fedora-docs/proxy/files/docs-rsync.stg @@ -13,7 +13,15 @@ # BUT see https://pagure.io/fedora-infrastructure/issue/12848 -rsync_cmd="rsync --timeout 300 -aH --delete --delete-after --delete-excluded" +# -a is the std. copy everything "archive" mode. +# -H means try to copy hardlinks as hardlinks +# --no-times --checksum means that if the file changes mtime we still keep +# the old file (and thus. the old hardlink). +rsync_cmd="rsync -aH \ + --no-times --checksum \ + --timeout 300 \ + --delete --delete-after --delete-excluded" + old=sundries01::docs/ new=sundries01::docs-redirects/