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

mongorestore --db database --collection collection deprecation warning

    XMLWordPrintableJSON

Details

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 45 weeks, 5 days ago