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:
parent
244ab4fb15
commit
5d1318cd95
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user