Sign inSign up

carlding/mongobackup

By carlding

•Updated almost 10 years ago

Can backup both local and remote mongo database with authentication.

Image
1

244

carlding/mongobackup repository overview

docker run -d -v /root/mongo:/backup -e 'CRON_SCHEDULE=0 0 * * *' -e MONGO_PORT_27017_TCP_ADDR=addr:27017 -e MONGO_USER=carlding -e MONGO_PASSWORD=carlding -e MONGO_DB=mongo  carlding/mongobackup

Input your host,username,password,db with env.

If you want to run the backup immediately, add the command no-cron

docker run -d -v /root/mongo:/backup -e MONGO_PORT_27017_TCP_ADDR=addr:27017 -e MONGO_USER=carlding -e MONGO_PASSWORD=carlding -e MONGO_DB=mongo  carlding/mongobackup no-cron

Build detail see http://qwding.github.io/post/mongo_backup/⁠

Tag summary

Content type

Image

Digest

Size

107.6 MB

Last updated

almost 10 years ago

docker pull carlding/mongobackup