Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
/ mongoS3 Public archive

Simply dump a Mongo DB, then stream everything to AWS S3, promise flavoured

License

Notifications You must be signed in to change notification settings

o5r/mongoS3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongoS3

⚠️ This package is no longer maintained, you should use an alternative solution for your backups ⚠️

Simply dump a Mongo DB, then stream everything to AWS S3, promise flavoured

Usage

const mongoS3 = require('mongo-s3');

mongoS3({
  log: console.log,
  uri: process.env.MONGO_URI,
  s3: {
      accessKeyId: process.env.AWS_ACCESS_KEY_ID,
      secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
      bucket: process.env.AWS_S3_DUMP_BUCKET,
      key: process.env.AWS_S3_DUMP_KEY
  }
}).then(function (result) { console.log('EVERYTHING SHOULD BE OK') })
  .catch(function (err) { console.error('Snap, something went wrong :(') });

About

Simply dump a Mongo DB, then stream everything to AWS S3, promise flavoured

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published