webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

Feature-Request:Backup VM

Open savichev opened this issue 6 years ago • 5 comments

https://github.com/milkey-mouse/backup-vm

savichev avatar Sep 12 '18 06:09 savichev

hi, full backup is very easy. i can add it. but incremental backup need some work.

i have implement it for backup and replication and i have a plan to merge it. i think it needs some time. libvirt group will add inc backup as an api.

catborise avatar Sep 13 '18 12:09 catborise

Hi, any news about this? would be nice.

Cheers

4920441 avatar Apr 20 '19 19:04 4920441

Qemu external snapshot and dirty block are still developing . As far as i see, required properties come with qemu version 4 . Libvirt still does not support external snapshots.

To implement that ourselves requires much effort, still i did implement it. But there are some caveats with dirty blocks. If you activate it you cannot resize qcow2 images. And migration problems...

I am waiting for qemu4 to merge external snapshots.

full backup is easy . But External snapshot = incremental backup

catborise avatar Apr 20 '19 20:04 catborise

Sorry for commenting on old issue, but are there any update? did full backup and incremental backup are implemented? (I want to backup VM and all disk to my NAS)

vuanhson avatar Aug 13 '20 04:08 vuanhson

libvirt team try to implement external backup/checkpoints but they could not. and they postpone it. i did my implementation but it is complicated code, it works but there is some hiccups related with qemu/libvirt. for example if you use lock mechanism, external backups merging does not work. they use dirty bitmaps but there are also some problems with migrations.

these problems commonly solved by qemu latest relases 5.0 and 5.1 but it takes time to build and bring to oses. if libvirt implements checkpoints it will be so easy to add. but if i have to implement it.. problems... (by the way i am using it internally for replication to another storage and it works...)

catborise avatar Aug 13 '20 09:08 catborise