I want to export around 5000 MongoDB Collections to JSON format using a single command. Is it possible to do so?
1 Answer
Please take a look at this script.
It's a bash script that basically does the following:
- Read the collections from MongoDB to a variable
- Iterate and call mongoexport for each collection