Restoring single collection in an existing mongodb

If you want to restore a single collection then you have to specifiy the dump file of the collection. The dump file of the collection is found in the ‘dump/dbname/’ folder. So assuming your dump folder is in your current working directory, the command would go something like –

mongorestore --db mydbname --collection mycollection dump/mydbname/mycollection.bson

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)