s3-mongodump

    1.2.1 • 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

    Install

    npm i s3-mongodump

    DownloadsWeekly Downloads

    1

    Version

    1.2.1

    License

    MIT

    Last publish

    Collaborators

    • harlanj