Hurry! 20% Off Ends SoonRegister Now

Downloading objects In OpenStack

 

Now that we have configured OpenStack Object Storage, we can also retrieve the stored objects using our swift client.

How to Download  Objects From OpenStack Object Storage 

Log in to a computer or server has the Swift Client Package Installed.

We will download objects from our OpenStack Object Storage environment using the different swift client options:

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

Downloading objects

This downloads the object to our filesystem. As we downloaded a file with the full path, this directory structure is preserved, so we end up with a new directory structure of tmp/test with a file in it called test1.

To gain in-depth knowledge and be on par with practical experience, then explore OpenStack Training Course .

 

Downloading objects with the -o parameter

To download the file without preserving the file structure, or to simply rename it to something else, we specify the -o parameter, as follows:

Downloading objects with the -o parameter                                                                                                                       
                                                                                                                                                                                                                                                                   RelatedPages:Openstack Tutorial

MindMajix Youtube Channel


Downloading all objects from a container

We are also able to download complete containers to our local file system. To do this, we simply specify the container we want to download, as follows:

Downloading all objects from a container

This will download all objects found under the test container.                                                                

                                                                                                                                                                                                                                                                  InterviewQuestions: Openstack Interview Questions

Downloading all objects from our OpenStack Object Storage account

We can download all objects that reside under our OpenStack Object Storage account. If we have multiple containers, all objects from all containers will be downloaded. We do this with the parameter, as follows:

Downloading all objects from our OpenStack Object Storage account
This will download all objects with full paths preceded by the container name, for example:

Paths preceded by the container name
Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers!  Download Now!

 

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:

Downloading objects and containers is achieved

To download all objects from our account (for example, from all containers), we specify the following syntax:
Download all objects from our account

Job Support Program

Online Work Support for your on-job roles.

jobservice

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreGet Job Support
Course Schedule
NameDates
OpenStack TrainingDec 24 to Jan 08View Details
OpenStack TrainingDec 28 to Jan 12View Details
OpenStack TrainingDec 31 to Jan 15View Details
OpenStack TrainingJan 04 to Jan 19View Details
Last updated: 03 Apr 2023
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read less
  1. Share:
OpenStack Articles