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

mongorestore --noDataRestore

    XMLWordPrintable

Details

    • New Feature
    • Status: Accepted
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • mongorestore
    • None

    Description

      As an analogue to --noIndexRestore (and to some degree --noOptionsRestore), it would be useful if mongorestore had a --noDataRestore option.

      This would behave as if the .bson files were empty files or absent, ie. just restore the collection options and indexes, but not any actual data.

      The workaround is to clone the dump tree, but with empty or removed .bson files, and then feed that to mongorestore. An option to automate this is justified in the same way as --noIndexRestore (which can be considered an automated alternative to manually hacking the contents of the .metadata.json files).

      Attachments

        Issue Links

          Activity

            People

              backlog-server-tools Backlog - Server Tools Team
              kevin.pulo@mongodb.com Kevin Pulo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: