Sign inSign up

brammys/mongodump

By brammys

Updated almost 2 years ago

Backup your Mongodb database with cron inside of a docker container!

Image
2

1.8K

brammys/mongodump repository overview

Quick reference

Examples

Run the backup task at 05:00 on Sunday and delete the backups after 14 days.

 docker run -v ./localBackupsDir:/backups -e "MONGO_URI=mongodb+srv://username:[email protected]" -e DELETE_AFTER=14 -e "CRON_SCHEDULE=0 5 * * sun" --name mongodump brammys/mongodump

Configurations

ENV variableDefault valueDescription
MONGO_URImongodb://mongo:27017The Mongodb URI
CRON_SCHEDULE0 0 * * *The cron schedule expression.
DELETE_AFTER The amount of days after the backups will be deleted. Leave empty to keep all backups.

Volumes

pathDescription
/backupsThe backup folder for the mongodumps.

Tag summary

Content type

Image

Digest

sha256:f0e4bffcb

Size

192.7 MB

Last updated

almost 2 years ago

docker pull brammys/mongodump