简体   繁体   中英

Jclouds & Rackspace: API to schedule backup

I would like to schedule backup of my instance, is there any service in API to do that?

ServerAdminApi has method createBackup which seems to cover my needs, but I can't retrieve this server from novaApi:

NovaApi novaApi = ContextBuilder.newBuilder("rackspace-cloudservers-uk")
                                .credentials(username, apiKey)
                                .buildApi(NovaApi.class);
Optional<? extends ServerAdminApi> wrapper = novaApi.getServerAdminExtensionForZone("LON");
ServerAdminApi serverAdminApi = wrapper.get(); 
//here exception because expected service isn't there

What can be wrong with it?

Or maybe I should leave API and use json to send commands like there, though it seems lots more complicated: http://docs.rackspace.com/rcbu/api/v1.0/rcbu-devguide/content/createConfig.html

Thanks

The ServerAdminApi is if you have your own OpenStack deployment that you have administrative privileges on. You won't be able to use ServerAdminApi with Rackspace.

You have the right idea that Rackspace Cloud Backup is the way to go. Unfortunately that API isn't supported in jclouds yet. I highly recommend adding a feature request for in our JIRA issue tracker . In the issue, let us know what the minimum set of API calls is that would fulfill your requirements.

As you mentioned, to work around this for the time being you'll need to make calls directly to the API.

如果您想观看此提供程序的进度,这是JIRA问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM