-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
-
Environment:
*Location*: http://docs.mongodb.org/manual/reference/program/mongorestore/
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
*Referrer*: http://docs.mongodb.org/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/program/mongorestore
Hi,
There's a '-' missing in the example of:
You can also pipe data directly into to mongorestore through standard input, as in the following example:
zcat /opt/backup/mongodump-2014-12-03/accounts.people.bson.gz | mongorestore --collection people --db accounts
The example should be:
zcat /opt/backup/mongodump-2014-12-03/accounts.people.bson.gz | mongorestore --collection people --db accounts -
with the final '-'.