No commit activity in last 3 years
No release in over 3 years
Adds a method to Rackspace Cloudfiles containers to synchronize files from a container to another.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.5.0.1
 Project Readme

cloudfiles-container-sync

Synchronizes files from a Rackspace Cloudfiles container to another.

Dependency Status

Getting started

Install the cloudfiles-container-sync gem:

gem install cloudfiles-container-sync

Use the sync_to method it adds to your Cloudfiles container objects:

cf = CloudFiles::Connection.new(:username => "your username", :api_key => "your api key")
container_source = cf.container('source')
container_destination = cf.container('destination')

container_source.sync_to(container_destination)

Method arguments

You can pass arguments to the method through an hash.

  • fast: if true, only files missing in the destination are copied. Good if your files are never updated.

  • filter: a regexp to select files to copy.

  • delete: if true, files in the destination that are not present in the source will be deleted.

Credits

Gilbert Roulot @ Tech-angels - http://www.tech-angels.com/

Tech-Angels