【发布时间】:2018-10-31 07:43:58
【问题描述】:
我想从我的.gz 文件中导入转储数据。
文件位置为home/Alex/Documents/Abc/dump.gz,数据库名称为"Alex"。
我试过mongorestore --gzip --db "Alex" /home/Alex/Documents/Abc/dump.gz
但它显示错误:
2018-10-31T12:54:58.359+0530 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
2018-10-31T12:54:58.359+0530 Failed: file
/home/Alex/Documents/Abc/dump.gz does not have .bson extension.
如何导入?
【问题讨论】:
标签: mongodb mongoimport mongodump mongorestore