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

mongorestore --db database --collection collection deprecation warning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.4.7
    • None
    • tools
    • true

    Description

      When specifying --db and --coll without pointing to a bson dump file, a deprecation warning is shown on the command line:

      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

      This deprecation warning is missing from https://docs.mongodb.com/manual/reference/program/mongorestore for the two options.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              torsten.spindler@mongodb.com Torsten Spindler
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 3 days ago