Usually when password contains special character if we provide it inside single quote, it works while doing mongo operations. But if it has single quote or double its causing below issue
Below is mongodump command with password containing singlequote and doublequote
sudo docker exec -t container_name mongodump --db db_name --authenticationDatabase admin -u=username -p='f'%`Z(Ov"{Z(i' -o=/data/db/backup/mongodump_sample --gzip
password in above is f'%`Z(Ov"{Z(i
It gives below error:
b'/bin/sh: 1: Syntax error: EOF in backquote substitution\n'
How to fix the issue ?