mongorestore --port 15000 --db my_db --drop -vvvvv my_db 2019-07-11T11:31:09.833+0300 checking options 2019-07-11T11:31:09.834+0300 dumping with object check disabled 2019-07-11T11:31:09.852+0300 connected to node type: standalone 2019-07-11T11:31:09.853+0300 standalone server: setting write concern w to 1 2019-07-11T11:31:09.853+0300 using write concern: w='1', j=false, fsync=false, wtimeout=0 2019-07-11T11:31:09.853+0300 mongorestore target is a directory, not a file 2019-07-11T11:31:09.853+0300 building a list of collections to restore from my_db dir 2019-07-11T11:31:09.853+0300 reading collections for database my_db in my_db 2019-07-11T11:31:09.853+0300 found collection my_db.base bson to restore 2019-07-11T11:31:09.853+0300 found collection my_db.base metadata to restore 2019-07-11T11:31:09.853+0300 finalizing intent manager with multi-database longest task first prioritizer 2019-07-11T11:31:09.854+0300 restoring up to 4 collections in parallel 2019-07-11T11:31:09.854+0300 will listen for SIGTERM and SIGINT 2019-07-11T11:31:09.854+0300 starting restore routine with id=3 2019-07-11T11:31:09.854+0300 starting restore routine with id=0 2019-07-11T11:31:09.854+0300 ending restore routine with id=0, no more work to do 2019-07-11T11:31:09.854+0300 starting restore routine with id=1 2019-07-11T11:31:09.854+0300 ending restore routine with id=1, no more work to do 2019-07-11T11:31:09.854+0300 starting restore routine with id=2 2019-07-11T11:31:09.854+0300 ending restore routine with id=2, no more work to do 2019-07-11T11:31:09.855+0300 collection my_db.base doesn't exist, skipping drop command 2019-07-11T11:31:09.855+0300 reading metadata for my_db.base from my_db\base.metadata.json 2019-07-11T11:31:09.857+0300 creating collection my_db.base using options from metadata 2019-07-11T11:31:09.857+0300 using collection options: bson.D(nil) 2019-07-11T11:31:09.873+0300 restoring my_db.base from my_db\base.bson 2019-07-11T11:31:09.875+0300 using 1 insertion workers 2019-07-11T11:31:09.879+0300 restoring indexes for collection my_db.base from metadata 2019-07-11T11:31:09.879+0300 finished restoring my_db.base (5 documents) 2019-07-11T11:31:09.879+0300 ending restore routine with id=3, no more work to do 2019-07-11T11:31:09.880+0300 done mongodump --port 15000 --db my_db -vvvvv -o dump 2019-07-11T11:31:29.264+0300 enqueued collection 'my_db.base' 2019-07-11T11:31:29.265+0300 dump phase I: metadata, indexes, users, roles, version 2019-07-11T11:31:29.266+0300 reading indexes for `my_db.base` 2019-07-11T11:31:29.271+0300 dump phase II: regular collections 2019-07-11T11:31:29.271+0300 will listen for SIGTERM, SIGINT and SIGHUP 2019-07-11T11:31:29.272+0300 finalizing intent manager with legacy prioritizer 2019-07-11T11:31:29.272+0300 dumping up to 1 collections in parallel 2019-07-11T11:31:29.272+0300 starting dump routine with id=0 2019-07-11T11:31:29.272+0300 writing my_db.base to 2019-07-11T11:31:29.273+0300 counted 5 documents in my_db.base 2019-07-11T11:31:29.281+0300 done dumping my_db.base (5 documents) 2019-07-11T11:31:29.283+0300 ending dump routine with id=0, no more work to do 2019-07-11T11:31:29.284+0300 dump phase III: the oplog 2019-07-11T11:31:29.284+0300 finishing dump mongoexport --port 15000 --db my_db -c base --out base.json -vvvvv 2019-07-11T11:52:19.735+0300 connected to: localhost:15000 2019-07-11T11:52:19.740+0300 exported 5 records mongoimport --port 15000 --db my_db -c base --drop --file base.json -vvvvv 2019-07-11T11:52:22.978+0300 using 2 decoding workers 2019-07-11T11:52:22.980+0300 using 1 insert workers 2019-07-11T11:52:22.981+0300 filesize: 627 bytes 2019-07-11T11:52:22.981+0300 using fields: 2019-07-11T11:52:22.991+0300 connected to: localhost:15000 2019-07-11T11:52:22.992+0300 ns: my_db.base 2019-07-11T11:52:22.994+0300 connected to node type: standalone 2019-07-11T11:52:22.995+0300 standalone server: setting write concern w to 1 2019-07-11T11:52:22.995+0300 using write concern: w='1', j=false, fsync=false, wtimeout=0 2019-07-11T11:52:22.995+0300 dropping: my_db.base 2019-07-11T11:52:23.011+0300 standalone server: setting write concern w to 1 2019-07-11T11:52:23.011+0300 using write concern: w='1', j=false, fsync=false, wtimeout=0 … data lines … 2019-07-11T11:52:23.049+0300 imported 5 documents