Transfers files from Mongo Cloud Manager to cloud storage using streams
npm install mongo-cloud-to-storage
First of all, replace the values in examples/config.template.js with your own. Then, try one of the below options for running it:
-
Pass in your config object:
var c2s = require( 'mongo-cloud-to-storage' ); c2s( /** your config object */ );
-
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' );
-
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
- AWS S3
Requires Node.js >= v4.0.0