[mongodump] : [thread1] SyntaxError: missing ; before statement @(shell):1:13


#1

I would like to backup mongo data (base on Mac)

➜  meteor-element git:(dev) ✗ meteor mongo
MongoDB shell version: 3.2.15
connecting to: 127.0.0.1:3001/meteor
meteor:PRIMARY> mongodump -h 127.0.0.1 --port 3001 -d meteor -o ~/Desktop/dump
2018-01-14T20:21:24.927+0700 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:13

Please help me


#2

keep your project running and run the dump command in another terminal. (not inside mongo shell.)


#3

Thanks for your quick reply.

➜  ~ mongodump -h 127.0.0.1 --port 3001 -d meteor -o ~/Desktop/dump 
zsh: command not found: mongodump

#4

You have install a MongoDB on your machine separately from Meteor.

mongodump and mongorestore are not a part of Meteor .


#5

OK thanks, I will try