GithubHelp home page GithubHelp logo

isabella232 / pkgcloud-sync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pkgcloud/pkgcloud-sync

0.0 0.0 0.0 128 KB

A node.js library for synchronizing cloud storage containers

License: ISC License

JavaScript 100.00%

pkgcloud-sync's Introduction

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.

pkgcloud-sync's People

Contributors

kenperkins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.