The purpose is to back up all the data of the whole project, not limited to one collection.
mongoexport —db Demo —out demo_backup.json
Error reporting after operation:
Error parsing command line: too many positional options
Please help the great gods
I solved this problem by removing the spaces between the fields to be exported after the -f parameter. Then it will be all right.