sheharyarn / mongo-sync

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

Can I skip certain collections? #14

Closed hustcer closed 7 years ago

hustcer commented 7 years ago

Thanks for the great work! BTW: Can I skip certain collections?

sheharyarn commented 7 years ago

Hi. Thank you for using mongo-sync. This Issue has been raised before, but I'm intentionally not implementing this. Please read the reasons in the issue's thread.

For finer control over how your database should be dumped/restored, using mongodump and mongorestore is recommended. Alternatively, you can fork the project and add the relevant flags yourself.