After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 128 of 317

Using OpenStack Storage 118 Downloading all objects from a container We are also able to download complete containers to our local filesystem. To do this, we simply specify the container we want to download, as follows: swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack download test This will download all objects found under the test container. Downloading all objects from our OpenStack Storage account We can download all objects that reside under our OpenStack Storage account. If we have multiple containers, all objects from all containers will be downloaded. We do this with the --all parameter, as follows: swift -V 2.0 -A http://172.16.0.1:5000/v2.0/ -U cookbook:demo -K openstack download --all This will download all objects with full paths preceded by the container name, for example: How it works... The swift client is a basic but versatile tool that allows us to do many of the things we want to do with files. Downloading objects and containers is achieved using the following syntax: swift -V 2.0 -A http://keystone_server:5000/v2.0 -U tenant:user -K password download container {object … } To download all objects from our account (for example, from all containers), we specify the following syntax: swift -V 2.0 -A http://keystone_server:5000/v2.0 -U tenant:user -K password download --all Deleting containers and objects The swift client tool allows us to directly delete containers and objects within our OpenStack Storage environment. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook