I have been using this wonderful script written by Chmouel Boudjnah to backup important files to Rackspace Cloud Files container. You can read more about the original script in his article Upload to Rackspace Cloud Files in a shell script.
In September 2012 Rackspace introduced the ability for customers to select a data center to store and retrieve their content, see Cloud Files Adds Multi Region Support. Currently there are two data centers available for US customers – Chicago (ORD) and Dallas (DFW). This is a great opportunity if you are looking to achieve a higher level of redundancy by storing your backups in more than one data center.
In order to use this feature Rackspace Cloud Identity API v1.1 or newer has to be used. Unfortunately Chmouel’s script lacks multi-region support because it uses API v1.0.
Below are a few examples.
Creating a new container
rackspace-cloudfiles.sh -u USERNAME -k API_KEY -r ORD -x PUT -c NEW_CONTAINER
Uploading file into a container
rackspace-cloudfiles.sh -u USERNAME -k API_KEY -r ORD -x PUT -c CONTAINER /path/to/file
Currently only uploading is implemented. Other operations such as downloading an object, deleting an object or getting a list of containers or objects in a container will be implemented later.