Fetch backup information
-
Question for @julien-f
-
You can get the backups from the logs:
/rest/v0/backup/logs?fields=tasks
-
@KPS thanks, this is indeed the logging but is it possible to fetch the current recoverypoints that are in the repository?
-
What do you mean by "fecthing recovery points" exactly?
-
@olivierlambert Sorry, we would like to show our customers the backups we have available for them, they need this for there iso purpose. So just a list we can show on a per vm basis.
-
@rtjdamen I'm doing something similar using the "xo-cli" utility on the XO server directly. I run this command remotely and it returns JSON array. Using this output I can identify which restore points exist for each VM
xo-cli backupNg.listVmBackups --json remotes="json:'[`"02fcd7e4-7172-46ec-a43f-2eb79fd00009`",`"f2c432dc-eddb-41bc-828f-67121529904c`"]'"
Note that I am limiting the output to only show me backups that exist in specific "remotes" but you may not need to do this.
I am interested if there is a REST API call that produces the same output? @julien-f
-
@billcouper yes indeed i think that is what we need. Hope this can be added to the api.
-
@julien-f is it difficult to add to the REST API?
-
@billcouper This is indeed not available at this time.
Currently we have the following backup routes:
backup/jobs/:type
: collections of backup jobs, grouped by type (metadata
,mirror
,vm
)backup/logs
: collections of backup run logs (for all types)
Any idea where we should put the collection of the VM backup files?
-
@julien-f maybe there can we some recoverypoint endpoint? or remotes?