[SERVER-42411] Query on Migrate Data from MongoDB-3.4 to MongoDB-4.0 directly Created: 25/Jul/19  Updated: 26/Jul/19  Resolved: 26/Jul/19

Status: Closed
Project: Core Server
Component/s: Upgrade/Downgrade
Affects Version/s: 4.0.8
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Sandeep [X] Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Dear Team,
Currently we are using MongoDB-3.4 as a standalone service in our Application and planning to migrate to MongoDB-4.0.
As per our understanding direct upgrade from 3.4 to 4.0 is not supported (As per the mongoDB documentation).

Can we use below approach to avoid first upgrading to 3.6 and then to 4.0?

Take backup of the data from 3.4 database using mongodump and then restore to 4.0 database using mongorestore
We tested this sample data and observed it is restoring fine in 4.0, however we are not sure whether this option can be considered in production environment.

Thank you.



 Comments   
Comment by Danny Hatcher (Inactive) [ 26/Jul/19 ]

That should be fine as long as you've tested and ensured that your system will not be affected by any of the 3.6 or 4.0 compatibility changes.

Please note that the SERVER project is for bugs and feature requests. If you need further assistance, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Generated at Thu Feb 08 05:00:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.