-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
Affects Version/s: mongodb-2.6
-
Component/s: manual
-
Labels:None
I only tested this with mongorestore 2.4.6. It may be fixed in later versions of the tool. The documentation is lacking both for 2.4 and 2.6
The documentation for mongodump suggests the possibility of using the "-o -" flag in order to pass the input to gzip.
The documentation for mongorestore is lacking in comparison. It only discusses inputs that are <path>, as if mongodump was called without the -o flag. There is no mention that:
1) gzipped input is not supported
2) Input can be either directories, or files, and how mongodump behaves in that situation.
3) Files (either given directly, or in a directory) must have a ".bson" suffix.
4) The documentation claims that "mongorestore recreates indexes recorded by mongodump.". This appears to be true only when mongodump is called without "-o -" and metadata files are created (This is an assumption. I did not test this)