why, restore bson file to database on windows
Hi,
I assumed you are meaning to ask how to restore bson file. You can use mongorestore to create a new database or add data to an existing database from BSON files that were dumped using mongodump.
For example to restore a collection:
mongorestore --collection collectionName --db dbName dump/dbName/collectionName.bson
You may also find MongoDB backup methods useful.
Regards,
Wan.