Mongoexport或Mongodump大量收藏

时间:2016-02-15 13:56:18

标签: mongodb mongodump mongoexport

当我在现有集合上执行mongodump时,转储将在转储的23%停止。该文件大约是1.2 GB。 我也尝试了mongoexport。但这也停留在23% 转储/导出始终停在21257107条记录。 这是正常的吗? (操作系统是Ubuntu 14.04 LTS)

mongodump -h localhost:27020 -d SensorData -c Values -o Dump
connected to: localhost:27020
2016-02-15T09:41:25.099+0100 DATABASE: SensorData to Dump/SensorData
2016-02-15T09:41:25.101+0100    SensorData.Values to Dump/SensorData/Values.bson
2016-02-15T09:41:28.178+0100            Collection File Writing Progress: 434100/91183458       0%      (documents)
2016-02-15T09:41:31.051+0100            Collection File Writing Progress: 940300/91183458       1%      (documents)
-------------------
2016-02-15T09:47:34.002+0100            Collection File Writing Progress: 21155100/91183458     23%     (documents)
2016-02-15T09:47:37.339+0100             21257107 documents
2016-02-15T09:47:37.339+0100    Metadata for SensorData.Values to Dump/SensorData/Values.metadata.json

mongoexport -host localhost:27020 --db SensorData --collection Values -vv  --out filename.json
2016-02-15T10:51:33.507+0100 creating new connection to:localhost:27020
2016-02-15T10:51:33.507+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-15T10:51:33.508+0100 connected to server localhost:27020 (127.0.0.1)
2016-02-15T10:51:33.508+0100 connected connection!
connected to: localhost:27020
exported 21257107 records

0 个答案:

没有答案