CloudFilesTransfer

Transfer Rackspace Cloud Files assets from one container to another or from account to another.

Installation

Add this line to your application's Gemfile:

gem 'cloud_files_transfer'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cloud_files_transfer

Usage

Have Rackspace username, api key and container name ready for both origin and destination folders. Or add a config yaml file to automatically pick the info from:

# config/cloudfiles.yml
origin:
  username: rackspace_username
  api_key: 1234567890abcdefghijklmnopqrstuv
  container: container_name

destination:
  username: rackspace_username
  api_key: 1234567890abcdefghijklmnopqrstuv
  container: container_name

Then launch the rake task to start the transfer. It doesn't matter where you do it from. It could be faster though if done from a Rackspace instance using service net (snet).

$ rake cloudfiles:transfer

By default, it will create 4 threads to transfer simultaneously. You can specify the amount of threads like so:

$ rake cloudfiles:transfer jobs=8

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request