O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Downloading objects

Now that we have a usable OpenStack Storage environment with containers and objects, there comes a time when we want to retrieve the objects. The swift client tool allows us to do this.

Getting ready

Log in to a computer or server that has the swift client package installed.

How to do it...

Carry out the following to download objects from our OpenStack Storage environment:

Downloading objects

To download the object tmp/test/test1, we issue the following command:

swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack download test tmp/test/test1

This downloads the object to our file system. As we downloaded a file with the full path, this directory structure is preserved, so we end up with a new directory structure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required