mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
bug #2426: handle sparse images in tm ssh mv (tar)
(cherry picked from commit 0c88cde992f834760096a90bef279c0db50824e7)
This commit is contained in:
parent
09e494f356
commit
4a1980a933
@ -71,8 +71,8 @@ log "Moving $SRC to $DST"
|
||||
ssh_exec_and_log "$DST_HOST" "rm -rf '$DST_PATH'" \
|
||||
"Error removing target path to prevent overwrite errors"
|
||||
|
||||
TAR_COPY="$SSH $SRC_HOST '$TAR -C $SRC_DS_DIR -cf - $SRC_VM_DIR'"
|
||||
TAR_COPY="$TAR_COPY | $SSH $DST_HOST '$TAR -C $DST_DIR -xf -'"
|
||||
TAR_COPY="$SSH $SRC_HOST '$TAR -C $SRC_DS_DIR --sparse -cf - $SRC_VM_DIR'"
|
||||
TAR_COPY="$TAR_COPY | $SSH $DST_HOST '$TAR -C $DST_DIR --sparse -xf -'"
|
||||
|
||||
exec_and_log "eval $TAR_COPY" "Error copying disk directory to target host"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user