1.0.0 • Published 11 years ago
pkgcloud-sync-cli v1.0.0
pkgcloud-sync-cli
A command line to to synchronize two cloud storage containers.
Supported Providers
- Amazon AWS Simple Storage Service (s3)
amazon - HP Cloud
hp - Openstack Swift
openstack - Rackspace Cloud Files
rackspace
Basic Usage
pkgcloud-sync --source-type rackspace --source-region dfw --source-key <rackspace-username> --source-secret <rackspace-api-key> --destination-type rackspace --destination-region iad --destination-key <rackspace-username> --destination-secret <rackspace-api-key> --container my-containerThis will sync all of the contents of container my-container from the DFW region to the IAD region for Rackspace. Subsequent executions of the sync will validate contents before uploading, thus saving significant time.
Options
source-typeThe provider for the source containersource-regionA region for the source container, optional (based on provider)source-keyIdentifier for the source container credentials- For Amazon, this is your access key
- For Openstack, Rackspace, and HP Cloud provide your username
- For Google, this is your project ID
source-secretYour secret for your providers credentials- For Amazon, this is your secret access key
- For Openstack and HP Cloud this is your password
- For Rackspace, this is your API Key
- For Google, this is the path to your JSON Key file
destination-typeThe provider for the destination containerdestination-regionA region for the destination container, optional (based on provider)destination-keyIdentifier for the destination container credentials- For Amazon, this is your access key
- For Openstack, Rackspace, and HP Cloud provide your username
- For Google, this is your project ID
destination-secretYour secret for your providers credentials- For Amazon, this is your secret access key
- For Openstack and HP Cloud this is your password
- For Rackspace, this is your API Key
- For Google, this is the path to your JSON Key file
containerThe container to sync from the sourcecontainer-suffixan optional container suffix for the destination container. Some providers require unique names, so this allows you to differentiate.
It is strongly encouraged to run this from either the source or destination region.
Unsupported Providers
The following providers are unsupported at this time:
- Google Cloud Storage
google
The Google Cloud Storage provider is somewhat functional, but is not yet fully tested. See pkgcloud#399 for more information.
1.0.0
11 years ago