trying mongodump with following options and get "positional arguments not allowed"
mongodump --host=hostname --port=27017 --db=db --out=/path --oplog --gzip
tried mongodump -h hostname -d dbname
and that works
What does the message
positional arguments not allowed
mean?
You got the syntax wrong in the first one. You need to remove the =
sign. See documentation.
mongodump --host hostname --port 27017 --db db --out /path --oplog --gzip
mongodump -d<dbname> -o <backUpPath>
like this:
mongodump -d projectdb -o /Users/zhangzhanqi/Desktop/backup_mongo/aaa
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With