mongodb备份报错 too many positional options
怪我咯
怪我咯 2017-04-24 09:13:54
0
2
1634

目的是想备份整个项目的全部数据,不限于某一个collection

使用的命令:
mongoexport —db Demo —out demo_backup.json

运行后报错:
Error parsing command line: too many positional options

求各位大神帮忙

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
Ty80

I solved this problem by removing the spaces between the fields to be exported after the -f parameter. Then it's fine.

小葫芦

Found the answer on stack overflow
mongodump -d Demo -o demo_backup.json

http://stackoverflow.com/questions/7521163/what-does-too-many-positional-options-mean-when-doing-a-mongoexport

I don’t know how to solve the problem if I continue to use mongoexport

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!