0
votes

Ok guys I receive a bunch of files of a mongodb (.bson and .json) I want to replace my current meteor mongodb, I have read al this post about it:

and I end writing in my terminal while meteor app was running

mongorestore -h 127.0.0.1:3001 --port 3001 -d meteor ~/Github/mongo/mongoDBRESTORE/admin/

enter image description here

but the problem its that terminal output is not command found

does anybody know what Im doing wrong, what its the right way to do this?

1
Do you have mongo 2.6 installed on your machine separately from Meteor? mongorestore comes from Mongo's binaries which may not be bundled with Meteor. - rgoomar
mmmmm yes I think this was the reason I end doing something like ~/mongodb/bin/mongorestore -h 127.0.0.1:3001 -db meteor ~/Github/mongo/mongoDBRESTORE/admin - ncubica
You have to install mongo tool apt-get install mongo-tools to run mongorestore - Sarath Ak

1 Answers

2
votes

As @rgoomar pointed in the comments I need to download https://www.mongodb.org/downloads the mongodb bin files then I simple execute ~/mongodb/bin/mongorestore -h 127.0.0.1:3001 -db meteor ~/Github/mongo/mongoDBRESTORE/admin

and worked!