s3-mongodump
v1.2.1
Published
Backup database host utility
Downloads
8
Maintainers
Readme
s3-mongodump
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.