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.
Log in to a computer or server that has the
swift client package installed.
Carry out the following to download objects from our OpenStack Storage environment:
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 ...