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

mongorestore --noDataRestore

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

      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).

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: