From 617e5ef33f8570257fee2821efbc379ba6a767ed Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 4 Nov 2025 01:39:46 +0100 Subject: Only do links in the second call. --- devuan_package_mirror_sync.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/devuan_package_mirror_sync.sh b/devuan_package_mirror_sync.sh index 1e8b061..5a87a04 100755 --- a/devuan_package_mirror_sync.sh +++ b/devuan_package_mirror_sync.sh @@ -32,7 +32,7 @@ BEHAVE="ionice -c3 nice -n 19" # (which doesn't affect the sorted transfer order, but does make the final file-updating phase happen much more rapidly). # NOTE - Seems we have to use the double rsync method, coz symlinks update in the wrong order, no matter what we do. -OPTIONS="--delay-updates -rlptSzhhv --no-motd --chown mirrors:www-data -M--open-noatime" +OPTIONS="--delay-updates -rptSzhhv --no-motd --chown mirrors:www-data -M--open-noatime" # --verbose, -v increase verbosity # --no-motd suppress daemon-mode MOTD # --archive, -a archive mode is -rlptgoD (no -A,-X,-U,-N,-H) @@ -78,15 +78,16 @@ EXCLUDES="--exclude Packages* \ --exclude Contents-* \ --exclude Translation-* \ --exclude ls-lR* \ + --exclude current \ --exclude .~tmp~" mkdir -p ${MIRROR_PATH} # The --exclude "/devuan-cd/" is so we don't wipe out the ISO mirror. -time $BEHAVE flock -n ${MIRROR_PATH}/devuan rsync ${OPTIONS} vesta@pkgmaster.devuan.org:~/devuan/ ${MIRROR_PATH} --exclude "/devuan-cd/" $EXCLUDES \ - | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$' | head -n -1 | tail -n +2 +time $BEHAVE flock -n ${MIRROR_PATH}/devuan rsync ${OPTIONS} vesta@pkgmaster.devuan.org:~/devuan/ ${MIRROR_PATH} --exclude "/devuan-cd/" $EXCLUDES \ + | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|skipping non-regular file' | head -n -1 | tail -n +2 echo "" -time $BEHAVE flock -n ${MIRROR_PATH}/devuan rsync ${OPTIONS} --delete-delay vesta@pkgmaster.devuan.org:~/devuan/ ${MIRROR_PATH} --exclude "/devuan-cd/" \ - | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$' | head -n -1 | tail -n +2 +time $BEHAVE flock -n ${MIRROR_PATH}/devuan rsync ${OPTIONS} -l --delete-delay vesta@pkgmaster.devuan.org:~/devuan/ ${MIRROR_PATH} --exclude "/devuan-cd/" \ + | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$' | head -n -1 | tail -n +2 # These helped - -- cgit v1.1