[SERVER-12187] extend mongodump to support --listExtents and --dumpExtents Created: 21/Dec/13  Updated: 11/Jul/16  Resolved: 22/Dec/13

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Daniel Pasette (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-12044 Add capability to perform parallel of... Closed
Participants:

 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



 Comments   
Comment by Githook User [ 29/Jan/14 ]

Author:

{u'name': u'Dan Pasette', u'email': u'dan@10mongodb.com'}

Message: Revert "SERVER-12187 Extend mongodump to support --listExtents and --dumpExtents"

This reverts commit f54536ac4e33bc18e8d7c1289c22e2e4d6c13eca.
Branch: master
https://github.com/mongodb/mongo/commit/276c79f3246ec65060cc6dfeb8f8e1cf121ccdcc

Comment by Githook User [ 29/Jan/14 ]

Author:

{u'name': u'Dan Pasette', u'email': u'dan@10mongodb.com'}

Message: Revert "SERVER-12187 add unit test for new options"

This reverts commit 5ce04be64d3421479e69f8f53a097425c77cfe18.
Branch: master
https://github.com/mongodb/mongo/commit/0a67590595841ef49dfc8ac83f227ece770689f3

Comment by Githook User [ 29/Jan/14 ]

Author:

{u'name': u'Dan Pasette', u'email': u'dan@10mongodb.com'}

Message: Revert "SERVER-12187 fix windows compile"

This reverts commit e581d37e8dd0fdad3ed4d3b6179dc225972eb842.
Branch: master
https://github.com/mongodb/mongo/commit/fd85ce79c397b96ed2da8787e75ca50146272c68

Comment by Githook User [ 22/Dec/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-12187 fix windows compile
Branch: master
https://github.com/mongodb/mongo/commit/e581d37e8dd0fdad3ed4d3b6179dc225972eb842

Comment by Githook User [ 22/Dec/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-12187 add unit test for new options
Branch: master
https://github.com/mongodb/mongo/commit/5ce04be64d3421479e69f8f53a097425c77cfe18

Comment by Githook User [ 22/Dec/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-12187 Extend mongodump to support --listExtents and --dumpExtents
Branch: master
https://github.com/mongodb/mongo/commit/f54536ac4e33bc18e8d7c1289c22e2e4d6c13eca

Generated at Thu Feb 08 03:27:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.