Backing up / restoring mongo without indexes

I am wondering how can I create mongodump / mongorestore without backing up, restoring indexes?

and how to incrementally restore mongo db without index recovery?

+7
source share
1 answer

The utility creates a binary export of data from MongoDB and stores the index definitions and collection parameters in the database associated with each paged database. Index information does not take up significant space in your backup and is usually used to re-provision indexes after each information for each collection is imported from a dump. mongodump mongodump metadata.jsonmongorestore

- , mongorestore --noIndexRestore.

. _id .

mongo ?

--noIndexRestore , . mongorestore , --noIndexRestore, , .

- , : .

MongoDB 2.6, mongorestore (.. /upserts ). mongorestore , , (, _id), .

, ( // ) . , MongoDB (oplog).

+16

All Articles