Backup
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
The QEMU Plugin supports the QMP control protocol which is a low-level managing interface for every QEMU Hypervisor flavor. In most cases this interface is used by Hypervisor management tools to manage QEMU VM Guests.
The current Plugin version supports two QEMU Hypervisor types:
Genuine QEMU -
mode=QEMU(the default)Proxmox (PVE) -
mode=PVE
The core backup and restore procedure is the same for every QEMU hypervisor type. The main difference is the way a VM is selected to be backed up and how the restore process is finished.
The core backup of a single guest VM consists of the following steps:
Query VM information and save it
For a Full backup level, during the backup transaction, create or clear Block dirty bitmap and dump VM disk image to the working area (check working_directory)
For an Incremental backup level, during the backup transaction, dump the incremental VM disk image to the working area and clear the dirty bitmap
When a VM disk image dump is ready, the Bacula File Daemon will send the data to the Storage Daemon
Backups can be performed for guest VMs in a running state only.
Any first Full level backup will create a backup chain used for
subsequent Incremental backups. The current plugin version creates
and maintains a single backup chain for each VM.
Warning
You should never mix different backup jobs for a single QEMU VM as it will break the backup chain and backups become unrecoverable!
The QEMU Plugin will log the start and end of each guest VM backup:
JobId 104: Start Backup JobId 104, Job=proxmox.2021-10-28_12.04.54_42
JobId 104: Recycled volume "vol01"
JobId 104: Using Device "FileChgr1-Dev2" to write.
JobId 104: qemu: Connected to Proxmox pve-manager/6.4-13/9f411e79 (running kernel: 5.4.143-1-pve)
JobId 104: qemu: Start Backup vm: vm1 (100)
JobId 104: qemu: Finish backup of vm1/drive-scsi0
...
The backup will create a single (.qcow2) file for every VM disk device saved
and a single VM configuration file (config.json) during a Full backup.
/@qemu/<vm-name>/<vmid>/<drive-name>.qcow2for every VM disk image/@qemu/<vm-name>/<vmid>/config.jsonfor VM configuration data
Tip
For Genuine QEMU mode <vmid> will generally always be set to zero
and <vm-name> is the value set with the -name <vm-name> QEMU execution
parameter.
Multiple files will be created during a backup if multiple guest VMs are backed up with one job (for Proxmox backup mode only). The distinct file names as shown above will help to locate the proper guest VM images for restore.
Go back to: QEMU Plugin: Operations.