virsh blockcopy without undefine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a script that performs a backup with the following steps:
virsh dumpxml --inactive "$DOMAIN" > "$TMP/${DOMAIN}.xml" && \
        virsh dumpxml --inactive "$DOMAIN" > "$DESTINATION_XML" && \
        virsh undefine "$DOMAIN" && \
        virsh blockcopy "$DOMAIN" "$SOURCE_DISK" "$DESTINATION_DISK" --wait --verbose --finish && \
        virsh define "$TMP/${DOMAIN}.xml"
It's basic and did work for creating basic backups. Is there a way to do this without undefining the domain? I recently had to redefine the VM from a backup XML because this script failed during the block copy step. Why can't I blockcopy a domain that is defined? Why does it need to be undefined first?

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux