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

mongodump should allow dumping of metadata only

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongodump
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                backlog-server-tools Backlog - Server Tools Team
                Reporter:
                nicholas.cottrell Nicholas Cottrell
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: