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

Update warning message for "mongorestore"

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 100.1.0
    • Component/s: mongorestore
    • Labels:
    • Documentation Changes:
      Not Needed

      Description

      Hi there,

      Two things have been causing little frustration to some users regarding the following "mongorestore" warning message:

      the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead

      1. Some users have been confused by the warning after using "mongorestore" with the "–db" option. The confusion comes from the first sentence because they were actually restoring from BSON files. Could we remove this sentence: the --db and --collection args should only be used when restoring from a BSON file?
      2. The warning message could be more precise if a user is trying to rename a database. As this comment reports, they are trying to rename a db but the warning is misleading because it tells them to use "—nsinclude" when they should be told to use "—nsInclude", "—nsFrom" and "—nsTo" in order to rename a database.  

      Warning message also reported on Stackoverflow

      Thanks!
      Carl

      cc: Kelsey T Schubert

        Attachments

          Activity

            People

            Assignee:
            hari.amoor Hari Amoor (Inactive)
            Reporter:
            carl.champain Carl Champain (Inactive)
            Reviewers:
            Huan Li, Matthew Chiaravalloti
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: