1

I find myself having to move a database between hosts but at the moment don't have the option of upgrading or downgrading any of the hosts.

I'm trying to find out if it is safe to do the following:

I have a running mongodb 3.0.15 instance which I've taken a dump from. I've restored that to another mongo instance running version 3.4.4 without any issues.

Can I now take a dump of the data in 3.4.4 and restore it on 3.0.15? There has been no material change to the db besides the usual create/update & deletion of records while running on the surrogate host.

2

Assuming you aren't using any newer features or index/collection options from MongoDB 3.2+ that aren't supported in MongoDB 3.0, you should be able to restore the backup.

Before doing so, I would review the downgrade instructions in the MongoDB documentation to check for potential issues:

The downgrade instructions assume a change of binaries rather than a mongodump backup, but the caveats on backward-incompatible features such as newer index and collection options still apply.

I suggest using the 3.4 versions of mongodump and mongorestore to test your outcome in a development or staging environment before applying to a production deployment.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.