libvirt 7.2.0 domainbackup

Peter Krempa pkrempa at redhat.com
Thu Apr 8 13:45:37 UTC 2021


On Wed, Apr 07, 2021 at 19:03:21 +0200, Thomas Stein wrote:
> Hello one and all.
> 
> Just wanted to check out the new feature domainbackup but having trouble to
> configure it. I thought I just have to put
> 
> <domainbackup>
>   <disks>
>     <disk name='vda' type='file'>
>       <target file='/var/lib/libvirt/jitsi'/>
>       <driver type='raw'/>
>     </disk>
>   </disks>
> </domainbackup>
> 
> at the top level of my domain xml file but that does not seem to work. I
> get:
> 
> error: XML document failed to validate against schema: Unable to validate
> doc against /usr/share/libvirt/schemas/domain.rng
> Element domain has extra content: domainbackup

That's not how it's used, if you want to create a backup you have to use
the virDomainBackupBegin API e.g. via `virsh backup-begin
VMNAME /path/to/backup.xml`.

Your backup xml file seems to look correct.




More information about the libvirt-users mailing list