aruhier / virt-backup

Backup your kvm guests managed by libvirt
Other
106 stars 23 forks source link

Failed to restore if file name duplicate #50

Open YK-Samgo opened 1 year ago

YK-Samgo commented 1 year ago

If one domain has two qcow2 file share the same name in different folder, backup will be successful but restore may fail.

For example, domain test has 2 qcow2 file, vda in /mnt/a/data.qcow2 and vdb in /mnt/b/data.qcow2. Backup was successful, but I met problem when restore it. The restore tried to put the 2 data.qcow2 into the same target_dir, which threw a qcow2 file already exists error.

aruhier commented 1 year ago

Thanks for the bug report, I'll try this scenario. Do you use zstd or tar or do you use directory? https://virt-backup.readthedocs.io/en/latest/config.html#packagers