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

mongodump should allow dumping of metadata only

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongodump
    • None

      While MongoDB has no schema, there are indexes in collections.  mongodump should allow dumping just metadata and no data, so that we can easily recreate a production environment's indexes into a dev cluster without dumping real prod data.

      This can be achieved today but providing a query that matches no documents, e.g. `mongodump -q {"_id" : -1 }` but a specific documented parameter such as `-nodata` or `-metadata` would be more user-friendly.

            Assignee:
            Unassigned Unassigned
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: