From c5c958f511c1f78e51c60e497a8e81da07017450 Mon Sep 17 00:00:00 2001 From: Julien Lutran Date: Thu, 27 Aug 2026 16:59:38 +0200 Subject: [PATCH] =?UTF-8?q?incus-copy:=20--quiet=20=E2=80=94=20the=20progr?= =?UTF-8?q?ess=20meter=20mangles=20log=20files=20with=20\r=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- incus-copy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/incus-copy.sh b/incus-copy.sh index d88769a..a238ae1 100755 --- a/incus-copy.sh +++ b/incus-copy.sh @@ -64,8 +64,9 @@ INSTANCES=$($INCUS list ${SRC:+"${SRC}:"} -c n -f csv) || { RC=0 for CT in $INSTANCES; do echo "[$(date '+%F %T')] copy ${SRC:+$SRC:}$CT -> ${DEST:+$DEST:}$CT${PROJECT:+ (project $PROJECT)}" - # --mode only applies to remote transfers - if $INCUS copy "${SRC:+$SRC:}$CT" "${DEST:+$DEST:}$CT" \ + # --mode only applies to remote transfers; --quiet suppresses the + # \r-progress meter that turns log files into mangled one-liners + if $INCUS copy --quiet "${SRC:+$SRC:}$CT" "${DEST:+$DEST:}$CT" \ --refresh --refresh-exclude-older \ ${SRC:+--mode "$MODE"} ${DEST:+--mode "$MODE"} \ ${POOL:+--storage "$POOL"} \