retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.68k stars 370 forks source link

Feature-Request:Backup VM #181

Open savichev opened 6 years ago

savichev commented 6 years ago

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

catborise commented 6 years ago

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.

4920441 commented 5 years ago

Hi, any news about this? would be nice.

Cheers

catborise commented 5 years ago

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

vuanhson commented 4 years ago

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)

catborise commented 4 years ago

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...)