Hello everyone,
I am trying to achieve a database dump using this command:
mongodump --uri
mongodb+srv://ACC_NAME:PASSWORD@cluster0.fklgt.mongodb.net/DATABASE_NAME
But, I keep getting this error:
Error parsing command line: unrecognised option ‘–uri’
CONTEXT:
I have done this several times before on my local machine. And now I am attempting to do this on a VPS where I am installing mongodb from scratch.
I tried installing it following the official documentation until I reached this step:
sudo apt-get install -y mongodb-org
Which throws this error:
E: Unable to locate package mongodb-org
After doing some research, I have found this stackoverflow question where most answers say that I should just:
At first try with this command: sudo apt-get install -y mongodb
This is the unofficial mongodb package provided by Ubuntu and it is
not maintained by MongoDB and conflict with MongoDB’s offically
supported packages.
So I did exactly that, and the rest is what I explained earlier in this post.
mongo --version
MongoDB shell version: 2.6.10
mongod --version
db version v2.6.10
hostnamectl
Operating System: Ubuntu 16.04.7 LTS
Kernel: Linux 4.4.0-210-generic
Architecture: x86-64