istepanov / docker-mongodump

Docker image with mongodump, cron task and upload to AWS S3
https://hub.docker.com/repository/docker/istepanov/mongodump
MIT License
100 stars 78 forks source link

Add ability to backup only single database #3

Open vdmitriy opened 8 years ago

vdmitriy commented 8 years ago

Hi @istepanov. Thank you for great tool. Please merge my improvement to backup only single database.

tenorok commented 7 years ago

It seems that this repository is orphaned...

Opportunity to backup only single database is good, but what if I need to backup two databases? Unfortunately now mongodump not providing opportunity to backups multiple databases at one time (TOOLS-22, TOOLS-31).

But in my fork I'm created environment variable MONGO_DB_NAMES, which workaround this injustice. For dump selective databases specify they names through space. This will create few archives with names like 20170218_025718-db1 and 20170218_025718-db2 for each database from option.