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:
co-authored by
Claude Fable 5
parent
28da17752a
commit
c5c958f511
+3
-2
@@ -64,8 +64,9 @@ INSTANCES=$($INCUS list ${SRC:+"${SRC}:"} -c n -f csv) || {
|
|||||||
RC=0
|
RC=0
|
||||||
for CT in $INSTANCES; do
|
for CT in $INSTANCES; do
|
||||||
echo "[$(date '+%F %T')] copy ${SRC:+$SRC:}$CT -> ${DEST:+$DEST:}$CT${PROJECT:+ (project $PROJECT)}"
|
echo "[$(date '+%F %T')] copy ${SRC:+$SRC:}$CT -> ${DEST:+$DEST:}$CT${PROJECT:+ (project $PROJECT)}"
|
||||||
# --mode only applies to remote transfers
|
# --mode only applies to remote transfers; --quiet suppresses the
|
||||||
if $INCUS copy "${SRC:+$SRC:}$CT" "${DEST:+$DEST:}$CT" \
|
# \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 \
|
--refresh --refresh-exclude-older \
|
||||||
${SRC:+--mode "$MODE"} ${DEST:+--mode "$MODE"} \
|
${SRC:+--mode "$MODE"} ${DEST:+--mode "$MODE"} \
|
||||||
${POOL:+--storage "$POOL"} \
|
${POOL:+--storage "$POOL"} \
|
||||||
|
|||||||
Reference in New Issue
Block a user