incus-copy: --quiet — the progress meter mangles log files with \r updates

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Julien Lutran
2026-08-27 16:59:38 +02:00
co-authored by Claude Fable 5
parent 28da17752a
commit c5c958f511
+3 -2
View File
@@ -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"} \