Public Repository

Last pushed: 10 months ago
Short Description
Can backup both local and remote mongo database with authentication.
Full Description
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/

Docker Pull Command
Owner
carlding

Comments (0)