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

document new mongodump behavior with views

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.4.0
    • None
    • tools

    Description

      The new 3.4 tools add support for dumping views with mongodump. The default behavior is to dump each view's metadata, so that they are restored as functional views. mongodump has a new option --viewsAsCollections. When specified, mongodump will dump the data produced by each applicable view without any metadata, so they can be restored as standard collections in another database. A --viewsAsCollections dump will not contain any data from standard collections in the source database.

      Older versions of mongodump are incapable of dumping views. Attempting to use a 3.2 version of mongodump to do so will fail.

      Attachments

        Activity

          People

            allison.moore@mongodb.com Allison Reinheimer Moore
            zach.snow Zach Snow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 12 weeks, 6 days ago