Re: libvirt 7.2.0 domainbackup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux