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

Tutorial on --ns* options in mongorestore

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Needs Triage
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 3.4.7
    • Fix Version/s: None
    • Component/s: tools
    • # Replies:
      0
    • Last comment by Customer:
      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

            Assignee:
            Unassigned
            Reporter:
            torsten.spindler Torsten Spindler
            Participants:
            Last commenter:
            Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Days since reply:
              3 years, 5 weeks, 3 days ago