mongo-cloud-to-storage

0.2.4 • Public • Published

mongo-cloud-to-storage

Transfers files from Mongo Cloud Manager to cloud storage using streams

Install

npm install mongo-cloud-to-storage

Usage

First of all, replace the values in [examples/config.template.js|examples/config.template.js] with your own. Then, try one of the below options for running it:

  1. Pass in your config object:

    var c2s = require( 'mongo-cloud-to-storage' );
    c2s( /** your config object */ );
  2. Pass in a filePath to a config object:

    var c2s = require( 'mongo-cloud-to-storage' );
    // This will be passed to require
    c2s( '../../some/file/path' );
  3. Run via npm start:

    git clone https://github.com/clounie/mongo-cloud-to-storage.git
    ##
    # Place config.js in the containing folder
    # File tree would look like:
    #   mongo-cloud-to-storage/
    #      config.js
    ##
    cd mongo-cloud-to-storage
    npm start

Package Info

Currently supported storage providers:

  • AWS S3

Requires Node.js >= v4.0.0

Readme

Keywords

none

Package Sidebar

Install

npm i mongo-cloud-to-storage

Weekly Downloads

0

Version

0.2.4

License

Apache-2.0

Last publish

Collaborators

  • clounie