Is there an Amazon S3 s3cmd sync equivalent for Rackspace cloud storage files?

I am currently using Amazon S3 to host all static content on my site. The site has a lot of static files, so I need an automatic way to sync the files on my localhost with the remote files. I am currently doing this with the s3cmd sync feature which works great. Whenever I run the deployment script, only the files that have changed are downloaded and all deleted files are deleted in S3 as well.

I want to try Rackspace CloudFiles; however, I cannot find anything that offers the same functionality. Do I still need to do this in Rackspace Cloud Files without writing my own sync utility? It must have a command line interface and work with OS X.

+3


source to share


2 answers


The pyrax SDK for Rackspace Cloud has a method sync_folder_to_container()

for cloud files that sounds like what you are looking for. It will only download new / changed files and additionally delete files from the cloud that are deleted locally.

In terms of bootstrapping, I usually use eventlet to download files as asynchronously as possible. The total time will still be limited by the upload speed (I don't know of any SDK that can get around this), but non-blocking code will certainly help the overall performance.



If you have any other questions, feel free to ask here on the GitHub page.

- Ed Leaf

+2


source


The Rackspace Python SDK can do this for you. There's a script called cf_pyrax.py that does more or less what I think you are trying to do. There it is written about it in the blog .



0


source







All Articles