Description
Add ability to list extents for a collection and dump the BSON directly for a given extent via mongodump using new options --listExtents and --dumpExtent. Must specify --dbpath when using either option, as a mongod process must not be running or attached to the data files.
// list extents for collection test.foo to dump/test/foo.extents.
|
// outputs 1 extent per line in the format 'diskLoc,size', e.g, '4:d587000,20480'
|
mongodump --dbpath /data/db/ --db test --collection foo --listExtents
|
|
|
// dump to dump/test/foo-4-d587000.bson
|
mongodump --dbpath /data/db/ --db test --collection foo --dumpExtent --diskLoc 4:d587000
|
|
|
// dump one extent to stdout and redirect to a file
|
mongodump --dbpath /data/db/ --db test --collection foo --dumpExtent --diskLoc 4:d587000 --out - > foo.bson
|
Attachments
Issue Links
- is duplicated by
-
SERVER-12044 Add capability to perform parallel offline data extraction
-
- Closed
-