I'm trying to restore a mongodb database from a dump in Ubuntu 14.04.2, the dump was created on MongoDB shell version: 2.4.13 and I'm restoring on MongoDB shell version: 3.0.1.
This is the command I'm running and the error I'm getting.
mongorestore /home/somename/backups/staging/mongo
2015-04-01T12:12:32.886+0200 building a list of dbs and collections to restore from /home/somename/backups/staging/mongo dir
2015-04-01T12:12:32.896+0200 assuming users in the dump directory are from <= 2.4 (auth version 1)
2015-04-01T12:12:32.896+0200 Failed: the users and roles collections in the dump have an incompatible auth version with target server: cannot restore users of auth version 1 to a server of auth version 5
Is there a way around it or a fix?
Any help will be much appreciated