How do I create a MongoDB dump of my database?

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

What command do I use and run?

19条回答
  •  北海茫月
    2020-12-22 15:48

    Following command connect to the remote server to dump a database:

    <> optional params use them if you need them

    • host - host name port
    • listening port username
    • username of db db
    • db name ssl
    • secure connection out
    • output to a created folder with a name

      mongodump --host --port --username --db --ssl --password --out _date+"%Y-%m-%d"

提交回复
热议问题