qcow2 copy

tincboy

Renowned Member
Apr 13, 2010
466
6
83
As in Proxmox 2.3 the qcow2 is default HDD format, I need to now how can I copy it,
With the raw format I simply use the cp command to copy the HDD drive perfectly and sime times when the file was on bad sector the dd command worked well
Is it still possible to use cp and dd with qcow2 commands to make backup a VM data? doesn't cp or dd make the copied file corrupt?
 
you can only copy/backup disk images safely if the VM is either suspended or turned off. this goes for RAW and qcow2 alike.

as for copying, its the very same procedure as with RAW images. you either use "cp --sparse=always" or "rsync --sparse"
 
As in Proxmox 2.3 the qcow2 is default HDD format, I need to now how can I copy it,
With the raw format I simply use the cp command to copy the HDD drive perfectly and sime times when the file was on bad sector the dd command worked well
Is it still possible to use cp and dd with qcow2 commands to make backup a VM data? doesn't cp or dd make the copied file corrupt?

you can also use new proxmox 2.3 backup feature, it's working on running vm with files (raw,qcow2) too now.