mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
7e5b993d3b
The semantics of the backup operation don't strictly require that all disks being backed up are part of the same incremental part (when a disk was checkpointed/backed up separately or in a different VM), or even they may not have a previous checkpoint at all (e.g. when the disk was freshly hotplugged to the vm). In such cases we can still create a common checkpoint for all of them and backup differences according to configuration. This patch adds a per-disk configuration of the checkpoint to do the incremental backup from via the 'incremental' attribute and allows perform full backups via the 'backupmode' attribute. Note that no changes to the qemu driver are necessary to take advantage of this as we already obey the per-disk 'incremental' field. https://bugzilla.redhat.com/show_bug.cgi?id=1829829 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
12 lines
355 B
XML
12 lines
355 B
XML
<domainbackup mode='push'>
|
|
<incremental>1525889631</incremental>
|
|
<disks>
|
|
<disk name='vda' backup='yes' type='file' backupmode='incremental' incremental='1525889631'>
|
|
<driver type='raw'/>
|
|
<target file='/path/to/file'/>
|
|
</disk>
|
|
<disk name='hda' backup='no'/>
|
|
<disk name='vdextradisk' backup='no'/>
|
|
</disks>
|
|
</domainbackup>
|