Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1440

mongorestore --archive foo doesn't act right, or do what users expect

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongodump, mongorestore
    • Labels:
      None
    • 1,675
    • v3.2

      I suspect that it's the nature of having options with optional arguments.

      I think that there are two or three problems here.

      One is that we should probably announce when we're expecting data on standard in with some sort of "reading archive from standard input" log message.

      Two is that mongorestore takes a positional argument specifying a directory or file to restore from. Archive mode precludes the use of those files, and we should actually emit an error when one specified both archive mode, and a positional file or directory argument.

      And, a third possibility is that we try to make the option parsing better and make the archive argument pick up the following option if it doesn't start with --'s

      Lastly, I think this same problem effects mongodump albeit in a different way.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: