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

document new mongodump behavior with views

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0
    • Affects Version/s: None
    • Component/s: tools
    • Labels:

      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.

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

              Created:
              Updated:
              Resolved:
              7 years, 23 weeks ago