[libvirt] [PATCH v8 13/21] backup: Implement virsh support for backup

Peter Krempa pkrempa at redhat.com
Fri Apr 26 07:41:57 UTC 2019


On Wed, Apr 17, 2019 at 09:09:13 -0500, Eric Blake wrote:
> Introduce a few more new virsh commands for performing backup jobs, as
> well as creating a checkpoint atomically with a snapshot.
> 
> At this time, I did not opt for a convenience command
> 'backup-begin-as' that cobbles together appropriate XML from the
> user's command line arguments, but that may be a viable future
> extension. Similarly, since backup is a potentially long-running
> operation, it might be nice to add some sugar that automatically
> handles waiting for the job to end, rather than making the user have
> to poll or figure out virsh event to do the same.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  tools/virsh-domain.c   | 245 +++++++++++++++++++++++++++++++++++++++++
>  tools/virsh-snapshot.c |  37 ++++++-
>  tools/virsh.pod        |  64 ++++++++++-
>  3 files changed, 336 insertions(+), 10 deletions(-)

This again looks unfinished due to containing commented out code.

The change to the snapshot code don't seem relevant and should be
separated into a new commit as this commit adds primarily backup APIs
and adding the checkpoint option is not relevant.

Also all the snapshot code in virsh is in a separate file, but the
backup/checkpoint code is put together with the reset.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190426/aebfbf11/attachment-0001.sig>


More information about the libvir-list mailing list