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

Tutorial on --ns* options in mongorestore

    XMLWordPrintable

Details

    • Improvement
    • Status: Needs Triage
    • Major - P3
    • Resolution: Unresolved
    • 3.4.7
    • None
    • tools
    • true

    Description

      The new options in mongorestore to deal with database and collection names as namespaces seem to be very powerful. While the doc page contains some examples, a tutorial on how to achieve certain goals might be beneficial. Some suggestions:

      • Copy a database under a different name with mongodump ... | mongorestore ...
      • Exclude collections with 'test' in the name
      • Include collections only when they have 'production' in the name

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              4 years, 40 weeks, 3 days ago