Skip to content

kakipo/mongodb-s3-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mongodb to Amazon s3 Backup Script

Requirements

  • Running mongod process
  • mongodump
  • mongo
  • (configured)s3cmd
  • tar
  • rm
  • curl

Usage

bash /path/to/backup.sh -u MONGODB_USER -p MONGODB_PASSWORD -o MONGODB_HOST -b S3_BUCKET

Cron

Daily

Add the following line to /etc/cron.d/db-backup to run the script every day at midnight (UTC time)

0 0 * * * root /bin/bash /path/to/backup.sh -u MONGODB_USER -p MONGODB_PASSWORD -o MONGODB_HOST -b S3_BUCKET`

About

Mongodb to Amazon S3 Backup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%