Linux – Copy (down) Rackspace Cloud File bucket to a local directory

cloudlinuxrackspace

How do I copy (down) a Rackspace Cloud File bucket to a local directory? Or better yet, how do I update a local directory to be a copy of the RS bucket?

There are plenty of tools for uploading or "rsync"ing up, but I am looking for a tool which copies in the other direction (down from the server).

Best Answer

You don't make it clear whether this is a regular - systematic - requirement, or a one-off.

If the latter, and in certain circumstances the former, you should check out tools such as Expandrive or CyberDuck which allows you to synchronise a folder from a machine onto the Cloud Files container.

In terms of the latter (systematic requirement), I wouldn't recommend these client-side tools in the same way - you're better off scripting something yourself using the API. Matt has given a good answer about Pyrax - obviously do check out similar API bindings in other languages if required - the full list is in the docs, here.

Related Topic