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

Yedidyah Bar David didi at redhat.com
Thu Oct 22 06:18:27 UTC 2015


On Thu, Oct 22, 2015 at 8:50 AM, Indunil Jayasooriya
<indunil75 at gmail.com> wrote:
> 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

/api is deprecated [1]. Please use /ovirt-engine/api in all URLs.

IIUC it should still work, though.

The page above links also to a complete example (check "External
references" near the end). Did you check it?

You might also want to play with the examples in [2].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=961677
[2] http://www.ovirt.org/Python-sdk

>  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?
>
> 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?

You should be able to. Can you access /ovirt-engine/api ?

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

Not sure.

Adding Juan, the SDK maintainer.

Best regards,

>
> 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
>



-- 
Didi



More information about the Users mailing list