Add support for backup of shutdown domains (#27)
Usually virtnbdbackup makes most sense while operating
on running domains. Only if a virtual domain is running,
checkpoints can be defined via libvirt API and the
required backup operations can be executed. The qemu
Process will then start the NBD backend in order to
receive the backup data.
With the recent changes, virtnbdbackup now detects
if the backup source is offline and then:
- Forces the backup mode to "copy": no full or
incremental backup supported because we cant create
an checkpoint via libvirt API. Copy type backup
is like a full backup just without checkpoint. - Forces the amount of workers to 1
- Starts an NBD Process via qemu-nbd for each disk, operating
directly on the Virtual Disk files as detected from the VM
configuration. - Queries required extents and data from the NBD
Service and saves it accordingly.
Full changeset:
Full Changelog: v0.36...v0.38