Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1256

Tools have to know not to backup/copy docs in views

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.12, 3.3.14
    • Affects Version/s: None
    • Component/s: All Tools
    • None
    • Server Tools 17 (7/15/16), Platforms 2016-08-26
    • Needed

      This might take some thought. I think there are valid use cases where the user does want to dump a backup/copy of docs from a view.

      mongodump will dump only metadata from views by default. We are going to add a --viewsAsCollections option to mongodump which will exclude normal collections and dump the data in views as a collection without the view metadata.

      Gabriel and I discussed this and decided that the tools should always not dump any metadata for views, given that the relevant information is already captured in the dump of system.views. Metadata for views will be dumped and system.views will be excluded.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: