[ovirt-users] schedule a VM backup in ovirt 3.5

Tomas Jelinek tjelinek at redhat.com
Thu Oct 22 07:22:47 UTC 2015



----- Original Message -----
> From: "Indunil Jayasooriya" <indunil75 at gmail.com>
> To: users at ovirt.org
> Sent: Thursday, October 22, 2015 7:50:03 AM
> Subject: [ovirt-users] schedule a VM backup in ovirt 3.5
> 
> Hi list,
> 
> I want to schedule a VM backup in ovirt 3.5. I read below URL.
> 
> http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups
> 
> It gives an below example of VM backup
> 
> 
> Example for VM Backup
> 
> 
>     * Use existing VM Snapshot/Create a vm snapshot (example):
> URL = SERVER:PORT/api/vms/VM_ID/snapshots
>  Method = POST
>  (with Content-Type:application/xml header)
>  Body =
>  <snapshot>
>  <description>Virtual Machine 1 - Snapshot For Backup</description>
>  </snapshot>
> 
> 
> But, How can I find the VM_ID of the VM that I want to backup?

look at:
https://engine.example.com/ovirt-engine/api/vms

it lists all the vms and shows both the VM name and it's ID

> 
> How can I write this below format?
> URL = SERVER:PORT/api/vms/VM_ID/snapshots
> 
> MY Ovirt Engine manager is running on another PC. (let's say
> engine.example.com ) i can access it by typing https://engine.example.com/
> 
> is it https://engine.example.com/api/vms/ VM_ID /snapshots ? I can't access
> it in firefox browser?

the correct address should be
https://engine.example.com/ovirt-engine/api/vms/ VM_ID /snapshots


> 
> Should I write a script? is there any Youtube video or doc that makes me to
> understand this?

it depends a lot on language you want to use. If you want to use for example python you could try this guide to python sdk
http://www.ovirt.org/Python-sdk

> 
> Hope to hear from you.
> 
> 
> 
> 
> 
> 
> 
> --
> cat /etc/motd
> 
> Thank you
> Indunil Jayasooriya
> http://www.theravadanet.net/
> http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts
> 
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list