I am trying to restore a mongodb database from a dump in Ubuntu 14.04.2, a dump was created in the MongoDB shell version: 2.4.13, and I am restoring the MongoDB shell version: 3.0.1.
This is the command that I run and the error that I get.
mongorestore / home / somename / backups / staging / mongo
2015-04-01T12: 12: 32.886 + 0200 creating a list of dbs and recovery collections from / home / somename / backups / staging / mongo dir
2015-04-01T12: 12: 32.896 + 0200, assuming that users in the dump directory are from <= 2.4 (auth version 1)
2015-04-01T12: 12: 32.896 + 0200 Failure: user and role collections in the dump have an incompatible auth version with the target server: it is not possible to restore users of version 1 for version 1 on a server of version 5 version
Is there any way around this or fix it?
Any help would be greatly appreciated
mongodb mongorestore
user2064986
source share