mongorestore --port 15000 --db my_db --drop -vvvvv my_db 2019-07-11T11:32:33.367+0300 checking options 2019-07-11T11:32:33.369+0300 dumping with object check disabled 2019-07-11T11:32:33.374+0300 will listen for SIGTERM, SIGINT, and SIGKILL 2019-07-11T11:32:35.383+0300 connected to node type: standalone 2019-07-11T11:32:35.384+0300 standalone server: setting write concern w to 1 2019-07-11T11:32:35.384+0300 using write concern: w='1', j=false, fsync=false, wtimeout=0 2019-07-11T11:32:35.385+0300 the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead 2019-07-11T11:32:35.386+0300 mongorestore target is a directory, not a file 2019-07-11T11:32:35.386+0300 building a list of collections to restore from my_db dir 2019-07-11T11:32:35.387+0300 reading collections for database my_db in my_db 2019-07-11T11:32:35.387+0300 found collection my_db.base bson to restore to my_db.base 2019-07-11T11:32:35.388+0300 found collection metadata from my_db.base to restore to my_db.base 2019-07-11T11:32:35.388+0300 finalizing intent manager with multi-database longest task first prioritizer 2019-07-11T11:32:35.388+0300 restoring up to 4 collections in parallel 2019-07-11T11:32:35.389+0300 starting restore routine with id=3 2019-07-11T11:32:35.390+0300 starting restore routine with id=1 2019-07-11T11:32:35.390+0300 ending restore routine with id=1, no more work to do 2019-07-11T11:32:35.391+0300 dropping collection my_db.base before restoring 2019-07-11T11:32:35.392+0300 starting restore routine with id=2 2019-07-11T11:32:35.393+0300 ending restore routine with id=2, no more work to do 2019-07-11T11:32:35.396+0300 reading metadata for my_db.base from my_db\base.metadata.json 2019-07-11T11:32:35.396+0300 creating collection my_db.base using options from metadata 2019-07-11T11:32:35.396+0300 starting restore routine with id=0 2019-07-11T11:32:35.397+0300 using collection options: bson.D{bson.DocElem{Name:"idIndex", Value:mongorestore.IndexDocument{Options:bson.M{"ns":"my_db.base", "name":"_id_"}, Key:bson.D{bson.DocElem{Name:"_id", Value:1}}}}} 2019-07-11T11:32:35.398+0300 ending restore routine with id=0, no more work to do 2019-07-11T11:32:35.413+0300 restoring my_db.base from my_db\base.bson 2019-07-11T11:32:35.415+0300 using 1 insertion workers 2019-07-11T11:32:35.418+0300 no indexes to restore 2019-07-11T11:32:35.418+0300 finished restoring my_db.base (5 documents) 2019-07-11T11:32:35.419+0300 ending restore routine with id=3, no more work to do 2019-07-11T11:32:35.419+0300 done mongodump --port 15000 --db my_db -vvvvv -o dump 2019-07-11T11:33:14.745+0300 will listen for SIGTERM, SIGINT, and SIGKILL 2019-07-11T11:33:18.754+0300 enqueued collection 'my_db.base' 2019-07-11T11:33:18.754+0300 dump phase I: metadata, indexes, users, roles, version 2019-07-11T11:33:18.756+0300 reading indexes for `my_db.base` 2019-07-11T11:33:18.759+0300 dump phase II: regular collections 2019-07-11T11:33:18.759+0300 finalizing intent manager with legacy prioritizer 2019-07-11T11:33:18.759+0300 dumping up to 1 collections in parallel 2019-07-11T11:33:18.760+0300 starting dump routine with id=0 2019-07-11T11:33:18.760+0300 writing my_db.base to 2019-07-11T11:33:18.762+0300 counted 5 documents in my_db.base 2019-07-11T11:33:18.762+0300 done dumping my_db.base (5 documents) 2019-07-11T11:33:18.763+0300 ending dump routine with id=0, no more work to do 2019-07-11T11:33:18.763+0300 dump phase III: the oplog 2019-07-11T11:33:18.763+0300 finishing dump mongoexport --port 15000 --db my_db -c base --out base.json -vvvvv 2019-07-11T11:50:51.483+0300 will listen for SIGTERM, SIGINT, and SIGKILL 2019-07-11T11:50:53.496+0300 connected to: localhost:15000 2019-07-11T11:50:53.498+0300 exported 5 records mongoimport --port 15000 --db my_db -c base --drop --file base.json -vvvvv 2019-07-11T11:50:59.184+0300 will listen for SIGTERM, SIGINT, and SIGKILL 2019-07-11T11:50:59.186+0300 using 2 decoding workers 2019-07-11T11:50:59.186+0300 using 1 insert workers 2019-07-11T11:50:59.187+0300 filesize: 627 bytes 2019-07-11T11:50:59.188+0300 using fields: 2019-07-11T11:51:01.201+0300 connected to: localhost:15000 2019-07-11T11:51:01.201+0300 ns: my_db.base 2019-07-11T11:51:01.203+0300 connected to node type: standalone 2019-07-11T11:51:01.203+0300 standalone server: setting write concern w to 1 2019-07-11T11:51:01.204+0300 using write concern: w='1', j=false, fsync=false, wtimeout=0 2019-07-11T11:51:01.204+0300 dropping: my_db.base 2019-07-11T11:51:01.213+0300 standalone server: setting write concern w to 1 2019-07-11T11:51:01.213+0300 using write concern: w='1', j=false, fsync=false, wtimeout=0 … data lines … 2019-07-11T11:51:02.197+0300 [########################] my_db.base 627B/627B (100.0%) 2019-07-11T11:51:03.251+0300 [########################] my_db.base 627B/627B (100.0%) 2019-07-11T11:51:03.251+0300 imported 5 documents