Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Define auth source #8

Open
jwillmer opened this issue Nov 13, 2019 · 2 comments
Open

Define auth source #8

jwillmer opened this issue Nov 13, 2019 · 2 comments

Comments

@jwillmer
Copy link

Can I define a authentication source? We normally connect like this to our mongodb:
mongodb://${MONGO_USER}:${MONGO_PW}@${DATABASE_IP}/?authSource=admin

Also, does is backup all database instances that are running on the mongo server or only one?

@tiredofit
Copy link
Owner

Here's the command I use for dumping:
mongodump --out ${TMPDIR}/${TARGET} --host ${DBHOST} --port ${DBPORT} ${USER_STR}${PASS_STR}${DB_STR} ${EXTRA_OPTS}

There's an undocumented variable in there EXTRA_OPTS - Give that a try? If you can get me a working example on how you made it work I will build it into the image (and also tiredofit/db-backup as I'm focusing more effort into maintaining that image`)

Setting DB_DUMP_DEBUG=TRUE as will will list the command executing with your own env vars so may help with getting you where you need to be.

@jwillmer
Copy link
Author

@tiredofit if I find the time I will try it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants