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

mongodump should allow dumping of metadata only

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • mongodump
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: