0

I want to restore a specific collection from a mongodb database and I have its data files (of whole db) and I want to restore only one collection

also which data files get affected when there is any change in collection along with its collection-*.wt file and index files

NOTE: I dont want to use mongorestore and I have a sharded cluster

I tried simple copy and pasting of collection-*.wt , its related index file and _mdb_catalog file.

thank you.

bash
  • 3
  • 1
  • 5
  • why can't you dump a single collection and restore it? – Atish Mar 10 '17 at 06:47
  • I want to backup with data files. i could backup full database but in case of collection i need to know which files get affected when there is any change in collection so that backing those file and restoring would bring my desired collection back – bash Mar 10 '17 at 09:59
  • @Astro I am using snapshot for backup its alternative to mongodump – bash Mar 14 '17 at 05:14

0 Answers0