Is there an API know to anyone to repair mongodb is case of corrupt databases through ruby-mongodb-driver.
Looking through the documentation seem that there isn't
can anyone confirm.
Or can anyone suggest me a better way to repair mongod database .
the currently I knew
./mongod --repair options
./mongo
> use [database]
> db.repairDatabase()
I also see a shell options
./mongo --help
options:
--shell run the shell after executing files
How can I write a script(.js) to repair the given database