But just to be safe, you may want to test things with a test container, and an empty local directory first.īTW: You will need to install the pyrax module and the python-dateutil module to use this. Cloud Files uses containers that are limited to 5 GB of storage, but you have an unlimited number of containers available to you. The outline view of the browser allows to browse large folder structures efficiently and you can quickly preview files with Quick Look. Rackspace Cloud Files is an independent, redundant, cloud-based solution for file storage. It features an easy to use interface with quickly accessible bookmarks. I've tested on some small containers, nothing big, and can confirm it seems to be working well. Cyberduck for Mac is an open source FTP, SFTP, WebDAV, Cloud Files and Amazon S3 browser for the Mac. The options for sync_container_to_folder are very similar to that for the built in function from pyrax, sync_folder_to_container, as documented at You can add delete=False to prevent that functionality, such as: cf.sync_container_to_folder('some-container', supporting Amazon S3, Google Storage, Windows Azure, Rackspace Cloud Files and even Google Docs servers edition of files by using favorite editor resuming. The way that sync_container_to_folder is called towards the bottom of the script, will delete any local files that do not also exist remotely, working similarly to the -delete argument for rsync. pyrax does not contain fully built out functions required to perform this, but I spent a few minutes and put something together by extending the default functionality of pyrax.Īt the very bottom of the code, you would need to update myusername with your real username, myapikey with your real api key, the 2 places with the appropriate region (which may already be DFW), some-container with the real container name, and /path/to/some/local/directory/ with the local directory you want it to sync down to. I don't know of any existing applications that will do this, however using the official Rackspace Python SDK, pyrax we can achieve your goal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |