Answers for "How to export all collections in MongoDB?"

1

How to export all collections in MongoDB?

mongodump --archive="my-local-db" --db=my


mongorestore --archive="my-local-db" --nsFrom='my.*' --nsTo='mynew.*'
Posted by: Guest on June-02-2021

Code answers related to "How to export all collections in MongoDB?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language