[DOCS-8633] document new mongodump behavior with views Created: 19/Aug/16  Updated: 17/Nov/16  Resolved: 17/Nov/16

Status: Closed
Project: Documentation
Component/s: tools
Affects Version/s: None
Fix Version/s: 3.4.0

Type: Task Priority: Major - P3
Reporter: Zach Snow Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: 3.4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents TOOLS-1256 Tools have to know not to backup/copy... Closed
Participants:
Days since reply: 7 years, 12 weeks, 6 days ago
Epic Link: 3.4 Tools Related Updates
Story Points: 0.5

 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.



 Comments   
Comment by Githook User [ 17/Nov/16 ]

Author:

{u'username': u'schmalliso', u'name': u'Allison Moore', u'email': u'allison.moore@10gen.com'}

Message: DOCS-8633: adds viewsAsCollections option to mongodump
Branch: master
https://github.com/mongodb/docs/commit/db18449ee037e0c327bbb550f0947535dcd69aa6

Generated at Thu Feb 08 07:56:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.