]> git.ipfire.org Git - thirdparty/libvirt.git/commit
backup: Introduce virDomainBackup APIs
authorEric Blake <eblake@redhat.com>
Thu, 22 Aug 2019 01:42:42 +0000 (20:42 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Dec 2019 11:41:56 +0000 (12:41 +0100)
commit74ca70507a648627c98d563b3c133517d3a5ce71
treef15f2d3e95eb7f2bbe93299b2c39f011d86b877b
parent252958ee16a9eefc2b55ce1be7af34ba8c84452e
backup: Introduce virDomainBackup APIs

Introduce a few new public APIs related to incremental backups.  This
builds on the previous notion of a checkpoint (without an existing
checkpoint, the new API is a full backup, differing from
virDomainBlockCopy in the point of time chosen and in operation on
multiple disks at once); and also allows creation of a new checkpoint
at the same time as starting the backup (after all, an incremental
backup is only useful if it covers the state since the previous
backup).

A backup job also affects filtering a listing of domains, as well as
adding event reporting for signaling when a push model backup
completes (where the hypervisor creates the backup); note that the
pull model does not have an event (starting the backup lets a third
party access the data, and only the third party knows when it is
finished).

The full list of new APIs:
        virDomainBackupBegin;
        virDomainBackupGetXMLDesc;

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-domain.h
src/driver-hypervisor.h
src/libvirt-domain-checkpoint.c
src/libvirt-domain.c
src/libvirt_public.syms