
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
mongo-backup-to-s3
Advanced tools
Easily stream mongodb backups to S3
Explore an inexpensive way to backup your MongoDb databases
Setup an S3 bucket, run this in a cron job using a Heroku Single Dyno (worker)
npm install mongo-backup-to-s3
Example:
var mongoBackup = require('mongo-backup-to-s3');
var config = {
mongodb:{
url: process.env.MONGO_URL
},
s3:{
bucket:'mybucket',
folder:'backups',
key: process.env.AWS_ACCESS_KEY,
secret: process.env.AWS_SECRET_KEY
}
};
mongoBackup.dumpToS3(config);
Generated filename in S3: backups/mongo_2015-12-30_22-16-34_mydatabase.dmp
This module relies heavily on mongo-dump-stream so it can output the 'dump' to a stream, and so we don't have to use mongodump (which requires a child process).
FAQs
stream mongodb backups to S3, with ease
We found that mongo-backup-to-s3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.