Skip to content

A small script to make daily backups of a MongoDB database, and moves them to Google Cloud Storage

License

Notifications You must be signed in to change notification settings

nikmartin/mongo-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mongo-backup

A small script to make daily backups of a MongoDB database, and moves them to Google Cloud Storage.

This version is intended to be run on the DB server(s) themselves, scheduled by a cron job. The script on the primnary will exit. This script is specific to my needs, so it assumes a 2 node replica set. If you wanted to run this on N+2> replicaset, you'll need better handling of primary/secondary detection

About

A small script to make daily backups of a MongoDB database, and moves them to Google Cloud Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages