How do I create a MongoDB dump of my database?

前端 未结 19 2467
既然无缘
既然无缘 2020-12-22 15:06

What command do I use and run?

19条回答
  •  执念已碎
    2020-12-22 15:58

    Below command will work to take dump of mongo db .

    mongodump -d -o

    On Windows : try this one where c:\mongodump is dump file location , It will create metadata in json, and backup in bson format

    C:\MongoDB\bin>mongodump -d -o c:\mongodump

提交回复
热议问题