Skip to content

C3212625/mongodb_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

mongodb_backup

MongoDB Database Backup Script with x509 Authentication

You can customize this Script based on your requirement . If you want to Trigger this Daily Backup with Basic Mongodb Authentication Just Ignore the PEMKEY & CA parameters and make the changes in the AUTH_PARAM

For Example :-

if [ ${AUTH_ENABLED} -eq 1 ]; then AUTH_PARAM=" --username ${MONGO_USER} --password ${MONGO_PASSWD}" fi

This will help to Enable Daily Backup without SSL Enabled.

Also, you can Alter your Retention Period on:

Number of days to keep local backup copy

BACKUP_RETAIN_DAYS=30

GZIP is Enabled along with Mongodump this will compress your backup by default.

About

MongoDB Database Backup Script with x509 Authetication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages