diskspec typo

This commit is contained in:
Jochen Welzel 2021-01-06 09:54:25 +01:00
parent b8aed5fe45
commit 8c5cab92f7

View File

@ -37,7 +37,7 @@ VMDISKS=$(virsh domblklist $VM | egrep -o vd.)
DISKSPEC="" DISKSPEC=""
for disk in $VMDISKS for disk in $VMDISKS
do do
DISKSPEC+="--discspec $disk,file=/srv/snapshots/$VM/$VM-$disk-$SNAPNAME.qcow2,snapshot=external " DISKSPEC+="--diskspec $disk,file=/srv/snapshots/$VM/$VM-$disk-$SNAPNAME.qcow2,snapshot=external "
done done
virsh snapshot-create-as --domain $VM --name $SNAPNAME --quiesce --atomic --disk-only $DISKSPEC > /dev/null virsh snapshot-create-as --domain $VM --name $SNAPNAME --quiesce --atomic --disk-only $DISKSPEC > /dev/null