我想从我的.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.
如何导入?