Meteor Newbie
Meteor Newbie

Reputation: 686

Meteor: how to save and restore mongodb collections

I found this solution with mongodump ( meteor: how can I backup my mongo database ):

mongodump -h 127.0.0.1 --port 3001 -d meteor
mongorestore -h 127.0.0.1 --port 3001 -d meteor dump/meteor

However, I can't use these commands (mongodump and mongorestore) in my Windows 10 console (Error: typo or couldn't find these commands). Do I have to install mongodump and mongorestore first? Just want to save and restore my local Meteor.users/db.users and my App-Collection db.mycollection.

Upvotes: 0

Views: 506

Answers (1)

chazsolo
chazsolo

Reputation: 8494

Look where you installed MongoDB, something like: C:\Program Files\MongoDB\Server\3.2\bin. If those executables are in that directory, then you just need to add that directory to your system PATH and they will be available to use a commands.

Upvotes: 1

Related Questions