title: Which one is the preferred choice Mongodump VS Mongoexport for upgrading mongoDB database?
body: <p>My customer uses mongoDB 2.4 and as there are some limitations with this version, we have give them the option to upgrade to Latest stable mongoDB 3.4.5. </p>
  
  <p>Initial testing of using 
  mongodump in MongoDB 2.4
  and mongorestore in Mongodb 3.4.5 worked fine as I can see all the collections imported.</p>
  
  <p>From the documentation <a href="https://docs.mongodb.com/manual/reference/program/mongorestore/" rel="noreferrer">mongorestore</a> it was not mentioned anywhere that it can restore the dumps from older versions of mongoDB.</p>
  
  <p>As we cannot use the mongorestore , Can I use "<a href="https://docs.mongodb.com/manual/reference/program/mongoexport/" rel="noreferrer">mongoexport</a>" to export the data in csv/json format of older mongoDB 2.4 , and import into newer version of mongoDB 3.4  ?</p>
  
  <p>What are the possible problems of using "mongoexport/mongoimport" instead of "mongodump" to upgrade to newer version of mongoDB 3.4 ?</p>
  
  <p><em>NOTE: I will remove the older version of mongoDB completely and will install the newer version of mongoDB</em></p>