On Thu, Jul 18, 2019 at 6:50 PM <smidhunraj@gmail.com> wrote:
Doubt on Backing Up and Restoring Virtual Machines Using the Backup and Restore API:-
In this link  https://ovirt.org/documentation/admin-guide/chap-Backups_and_Migration.html#backing-up-and-restoring-virtual-machines-using-the-backup-and-restore-api
in point 4 it is said that



4 .Attach the snapshot to the backup virtual machine and activate the disk:

 POST /api/vms/22222222-2222-2222-2222-222222222222/disks/ HTTP/1.1
 Accept: application/xml
 Content-type: application/xml

 <disk id="11111111-1111-1111-1111-111111111111">
     <snapshot id="11111111-1111-1111-1111-111111111111"/>
     <active>true</active>
 </disk>

What does this 22222222-2222-2222-2222-222222222222 mean do we need to create a new   virtual machine and attach the snapshot to that.
  Could you kindly explain it further

The 22222222-2222-2222-2222-222222222222 is the ID of the VM that the backup solution runs. You will need a VM that does the actual backup. This is the "Backup VM" copies the data from the other vm disk snapshot and stores it somewhere safe. Other VMs snapshots will be attached to this VM, which will do the backup, then detached.

If the Backup VM is doing the API requests, it can get its UUID by looking for itself via the API or via dmidecode (UUID field).
 
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/OEXGCKKP4AYXAB7XVMNEMI4ERC6XV63A/