Skip to content

A node.js library for synchronizing cloud storage containers

License

Notifications You must be signed in to change notification settings

pkgcloud/pkgcloud-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkgcloud-sync

A cloud storage syncing library. Allows you to synchronize a container from one cloud to another.

Supported Providers

  • Amazon AWS Simple Storage Service (s3) amazon
  • HP Cloud hp
  • Openstack Swift openstack
  • Rackspace Cloud Files rackspace

Basic Usage

var Sync = require('pkgcloud-sync').Sync;

var sync = new Sync({
  source: {
    provider: 'rackspace',
    region: 'dfw',
    username: '<rackspace-username>',
    apiKey: '<rackspace-apiKey>'
  },
  destination: {
    provider: 'rackspace',
    region: 'dfw',
    username: '<rackspace-username>',
    apiKey: '<rackspace-apiKey>'
  },
  containers: 'my-container'
});

sync.run(function(err) {
	if (err) {
		log.error(err);
	}
	process.exit(err ? 1 : 0);
});

This 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.

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.

About

A node.js library for synchronizing cloud storage containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published