sheharyarn / mongo-sync

Sync Remote and Local MongoDB Databases :fire:
https://sheharyar.me/blog/sync-mongodb-local-and-production-heroku/
322 stars 90 forks source link

Need to add --authenticationDatabase option for old 2.x databases #7

Closed joaocc closed 8 years ago

joaocc commented 8 years ago

Hi, Can you add the ability to specify the "--authenticationDatabase" option for remote host? This will make life easier for people who want to use the script to sync multiple DBs from the same server, w/o having to create dedicated replication users in all of them. Thx!

joaocc commented 8 years ago

I added this to my fork https://github.com/hsz-devops/sheharyarn--mongo-sync/network, but it's hardwired (ie, not configurable via yaml).