-
Type: New Feature
-
Resolution: Unresolved
-
Priority: 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).
- is related to
-
TOOLS-1043 mongorestore --noIndexRestore inhibits empty collection creation
- Closed
-
TOOLS-2417 Add option to only dump/restore collection metadata and indexes
- Accepted
- related to
-
SERVER-12508 Add Replica Set Restore Mode (for point-in-time)
- Closed
-
TOOLS-176 Dump/Restore with --oplog not point-in-time
- Closed
-
SERVER-10773 Provide mechanism for cloud to reliably replay an oplog into a secondary, including restart
- Closed