Rackspace Cloudvent Calendar Day 8: Bulk Operations In Cloud Files

In the spirit of the holiday season, I’m sharing some tips and features of our cloud that you may not know about. In this countdown I’ll have 24 posts for you, each covering a single topic or feature about Rackspace Cloud products. We’ll post one per day so keep checking back!

Cloud Files can be used to store thousands and thousands of objects and serve them over the Akamai content delivery network (CDN). What if you are just getting started and have a ton of files to upload? What if you need to delete a container with tons of objects in it? You used to have to upload or delete all of the objects in a container one at a time. It took forever.

Bulk operations through the Rackspace Cloud Files API make this a lot easier. If you want to use the API directly to do this, features are documented here. However, I recommend you use a tool called Turbolift. Turbolift is a Cloud Files uploader written in Python that you can use to either upload or delete thousands of objects quickly and easily. An example to upload the contents of a directory to a container:

turbolift -u [CLOUD-USERNAME] -a [CLOUD-API-KEY] --os-rax-auth [REGION] upload -s [PATH-TO-DIRECTORY] -c [CONTAINER-NAME]

Before you decide you need to ship us a drive (also an option!) give Turbolift a try!

Be sure to come back each day throughout December for another helpful cloud tip. And check out previous Rackspace Cloudvent Calendar entries here.