From 7bcca15cd786e6fbcee0ef649daed2560cc7460f Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Wed, 19 Sep 2018 12:31:03 +0200 Subject: [PATCH] B #2435: SSH TM disk-saveas doesn't respect snapshot ID (cherry picked from commit 62e6e8a474644b6cf9e1fe5b02314b14cc36d6f1) --- src/tm_mad/ssh/cpds | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tm_mad/ssh/cpds b/src/tm_mad/ssh/cpds index 5ec0bbb55d..ae542c4b8b 100755 --- a/src/tm_mad/ssh/cpds +++ b/src/tm_mad/ssh/cpds @@ -40,6 +40,11 @@ fi #------------------------------------------------------------------------------- # Move the image back to the datastore #------------------------------------------------------------------------------- + +if [ "${SNAP_ID}" != "-1" ]; then + SRC="${SRC}.snap/${SNAP_ID}" +fi + log "Moving $SRC to datastore as $DST" exec_and_log "$SCP -r $SRC $DST" "Error copying $SRC to $DST"