0

I want to export around 5000 MongoDB Collections to JSON format using a single command. Is it possible to do so?

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.