Reputation: 253
I'm trying to create a backup of my database using Mongodump. The problem is that every time i execute the dump, i get the following error:
--collection: command not found
Here is the command:
mongodump --uri=MYURI --collection TEST-COL --gzip --out=/var/backups/testbackup
I'm using linux, while on windows the same command seems to work. Any advice?
Upvotes: 1
Views: 848
Reputation: 1680
The URI is a connection string, must be wrap with double quotes ("").
--uri=<connectionString>
Upvotes: 0