0

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?

Community
  • 1
  • 1
ncubica
  • 8,169
  • 9
  • 54
  • 72
  • 2
    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 Jan 06 '15 at 08:36
  • 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 Jan 06 '15 at 19:52
  • 1
    You have to install mongo tool `apt-get install mongo-tools` to run mongorestore – Sarath Ak Oct 11 '18 at 11:43

1 Answers1

2

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!

ncubica
  • 8,169
  • 9
  • 54
  • 72