Skip to content

Copies files from the local filesystem to Rackspace Cloud Files

License

Notifications You must be signed in to change notification settings

patio11/cloudfiles-cp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

#THIS IS ALPHA SOFTWARE.  USE AT YOUR OWN RISK.

copyright (c) 2011 Patrick McKenzie.  MIT licensed (same as Ruby/Rails/etc).

Copies files from the local hard disk to the specified Rackspace CloudFiles bucket.  Attempts to mirror local structure, to make it easy for you to use them again.

To install dependencies:
  sudo gem install cloudfiles   #the Rackspace cloud file library

Example of use:
  nano ~/.rackspace_cloud_credentials
  cd /opt/backups
  ruby /path/to/that/script.rb -r -b backups .

  ^^ This would result in mirroring the structure of the /opts/backups/ under the bucket "backups" in your CloudFiles account.


Backup specified files to Rackspace Cloud Files.
Usage: ruby cloudfile-cp.rb [@options] file1 [file2...]
    -r, --recursive                  Recursively follow directories.
        --include-hidden             Copy files/directories beginning with , too.  (implies -r)
    -u, --user USER                  specify user (default: reads in ~/.rackspace_cloud_credentials)
    -c CREDENTIAL_FILE               load YAML file containing "key: RACKSPACE_KEY_GOES HERE" and "bucket_name: BUCKET_NAME_GOES_HERE"
        --credentials
    -k, --key KEY                    specify Rackspace API key (default: reads in ~/.rackspace_cloud_credentials and looks for key:)
    -b, --bucket BUCKET_NAME         specify bucket to back file up to (default: reads YAML in ~/.rackspace_cloud_credentials and looks for bucket_name:)
    -v, --verbose                    The output of the script gets very chatty.
    -f, --force                      Overwrite files with the same name. (defaults to skipping them if you don't specify this flag)
    -h, --help                       display this screen

About

Copies files from the local filesystem to Rackspace Cloud Files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages