JayK23
JayK23

Reputation: 253

Mongodump - command not found when executing dump

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

Answers (1)

Haniel Baez
Haniel Baez

Reputation: 1680

The URI is a connection string, must be wrap with double quotes ("").

--uri=<connectionString>

Upvotes: 0

Related Questions