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"} \