[DOCS-442] Add example to of using mongodump / mongorestore to restore data to sharded environment. Created: 24/Aug/12 Updated: 30/Oct/23 Resolved: 13/Sep/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gregor Macadam | Assignee: | Bob Grabar |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Days since reply: | 10 years, 20 weeks, 5 days ago | ||||||||||||
| Description |
|
Improve docs on sharded data imports / ingesting large ammounts of data. =============================== >>>>>>>>>>>>>>> Gregor's original description Add simple example of mongodump / mongorestore in sharded environment such as this to here Here I have some data files which show databases local, test, database1 and database2
There is no mongod process using these files so I will use mongodump to create a bson backup from the files directly. If there was a mongod running I would run mongodump against that process instead using the --host argument.
Now I have the data in bson format - one directory per db. If I want to import only database1 into my sharded setup then I use command.
If I have a mongos running on localhost on port 27017. If I have previouly enabled sharding on that database and sharded a collection in it then I will see this. In this case I have only one chunk.
but there is data in the collection
|
| Comments |
| Comment by auto [ 27/Sep/13 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 27/Sep/13 ] |
|
Author: {u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}Message: Signed-off-by: Sam Kleinman <samk@10gen.com> |