[SERVER-27732] Copy the /data/mongodb directory Created: 18/Jan/17 Updated: 18/Jan/17 Resolved: 18/Jan/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | WiredTiger |
| Affects Version/s: | 3.4.1 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Pierre MOELO [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Is it possible to copy the /data/mongodb directory that contains * .wt files and start a new MongoDB installation with this directory? I wanted to try.. But I had errors during startup like : WiredTiger error src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 267 So solutions are to make a db.copy or a dump / restore? |
| Comments |
| Comment by Mark Agarunov [ 18/Jan/17 ] |
|
Hi PM, Thanks for your report. It is possible to create a binary file copy of the database, as long as the database has been shut down and there are no writes during the copy. If these restrictions aren't acceptable, there are additional methods to make a backup or copy covered in the backup documentation. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group. Thanks, |