1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

M #-: Fix VM recreate from recovery snap (#875)

This commit is contained in:
Jan Orel 2021-02-24 19:27:02 +01:00 committed by GitHub
parent 244ab4fb15
commit 5d1318cd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,10 +143,12 @@ if [ "$REPLICA_HOST" = "$DST_HOST" ]; then
create_base "$SRC_PATH" "$DST_PATH"
else
cd $SRC_DIR
cp $SRC_FILE $DST_PATH
cp -P $SRC_FILE $DST_PATH
if [ -d $SRC_PATH.snap ]; then
cp -r $SRC_PATH.snap $DST_PATH.snap
( cd $DST_PATH.snap; ln -s . $DST_FILE.snap )
fi
fi
EOF