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

mongorestore docs show deprecated example with --archive and --db

      Description

      In this section Restore from compressed data  

      mongorestore --gzip --archive=test.20150715.gz --db test
      

      which gives

      2019-03-28T16:26:26.080+0100	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
      

      it feels like we should skip the --db part of the example, or is this a bug in mongorestore in 4.0?

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

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