Import mongo collections dump

MongoDb

If you have mongoDb dump with many .bson files, you can import it one by one by this command:

mongorestore -d database_name -c collection_name /path/to/dump_file.bson

All simple use this simple import script (it work with base script):

Import script:

Comments

Login with GitHub to leave a comments