Restoring the database dump of an older version of mongo to a new version of mongo

后端 未结 2 2032
逝去的感伤
逝去的感伤 2021-02-09 03:07

Currently, I have an older version of mongo, i.e 2.6 running on my system. I already have my site in production and have a lot of client data. I am planning an upgrade to mongo

2条回答
  •  渐次进展
    2021-02-09 03:37

    As you have data from mongo 2.6, index field limitation is already fulfilled. Mongo 3.2 will restore this backup without any issue.

    The other way you can upgrade your db (if you have replica set) is to replace one 2.6 member with 3.2 and wait for sync, then other one... This will give you business continuity :-)

提交回复
热议问题