Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3861

mongorestore doesn't document valid input

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • mongodb-2.6
    • manual
    • None

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            salty-horse Ori Avtalion
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago