MongoDB Backup Issue on GCP

Hi Team,

I am facing an issue with MongoDB backup on GCP. When executing the backup command below.

mongodump --uri="mongodb+srv://<username>:<password>@<host>/27017" -d <dbname> --gzip --out /mongodata/backup/data

I encounter the following error

error parsing command line options: error parsing uri: <host> on 127.0.0.53:53: no such host

I would appreciate any assistance in resolving this issue.

Thanks,
Krishnakumar K

Hi @KRISHNAKUMAR_K,
I think there is something wrong in the uri definition (for example the port at the end of uri).
I suggest you to follow the official documentation to try to correct the error:

Regards