mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
fc6aaf6a19
Allow enabling TLS for the NBD server used to do pull-mode backups. Note that documentation already mentions 'tls', so this just implements the schema and XML bits. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
37 lines
1.2 KiB
XML
37 lines
1.2 KiB
XML
<domainbackup mode='pull'>
|
|
<incremental>1525889631</incremental>
|
|
<server transport='tcp' tls='yes' name='localhost' port='10809'/>
|
|
<disks>
|
|
<disk name='vda' backup='yes' state='running' type='file' exportname='test-vda' exportbitmap='blah'>
|
|
<driver type='qcow2'/>
|
|
<scratch file='/path/to/file'>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' uuid='0a81f5b2-8403-7b23-c8d6-21ccc2f80d6f'/>
|
|
</encryption>
|
|
</scratch>
|
|
</disk>
|
|
<disk name='vdb' backup='yes' state='complete' type='file' exportname='test-vda' exportbitmap='blah'>
|
|
<driver type='qcow2'/>
|
|
<scratch file='/path/to/file'>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' usage='/storage/backup/vdb'/>
|
|
</encryption>
|
|
</scratch>
|
|
</disk>
|
|
<disk name='vdc' backup='yes' state='running' type='block'>
|
|
<driver type='qcow2'/>
|
|
<scratch dev='/dev/block'>
|
|
<encryption format='luks'>
|
|
<secret type='passphrase' usage='/storage/backup/vdc'/>
|
|
</encryption>
|
|
</scratch>
|
|
</disk>
|
|
</disks>
|
|
<privateData>
|
|
<objects>
|
|
<secret type='tlskey' alias='test-tlskey'/>
|
|
<TLSx509 alias='test-tlsobj'/>
|
|
</objects>
|
|
</privateData>
|
|
</domainbackup>
|