mongodump2s3

1.0.2 • Public • Published

s3-mongodump

version build license

Perform mongodump on database host and send backup to s3

Install

$ npm install -g s3-mongodump

CLI Usage

Usage: s3-mongodump [options]

Options:

-h, --help                           output usage information
-V, --version                        output the version number
-h, --host <mongo host>              Host connection to mongo database host
-u --username <username>             DB host admin username
-p, --password <password>            DB host admin password
--oplog                              Oplog flag for mongodump command
-o --output <path>                   Output path to store tar file
-b --bucket <bucket>                 AWS bucket location (includes path to uploaded folder)
--accessKeyId <accessKeyId>          AWS accessKeyId
--secretAccessKey <secretAccessKey>  AWS secretAccessKey
--retry <number>                     Number of time to retry on sending backup to S3

API Usage

const Backup = require('s3-mongodump')
 
Backup(options, (err) => {
  if (err) throw err
})

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

MIT

Package Sidebar

Install

npm i mongodump2s3

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

23.7 kB

Total Files

17

Last publish

Collaborators

  • miccarr