istepanov / docker-mongodump

Docker image with mongodump, cron task and upload to AWS S3
https://hub.docker.com/repository/docker/istepanov/mongodump
MIT License
100 stars 78 forks source link

backup.sh -p parameter is for password, should use --port #7

Open fiddleatwork opened 7 years ago

fiddleatwork commented 7 years ago

mongo --help:

connection options: -h, --host= mongodb host to connect to (setname/host1,host2 for replica sets) --port= server port (can also use --host hostname:port)

authentication options: -u, --username= username for authentication -p, --password= password for authentication --authenticationDatabase= database that holds the user's credentials --authenticationMechanism= authentication mechanism to use

it seems -p is used for password. the script should use --port

I'd submit a PR but it seems the is little or no activity in this repo (several other PR's are still open).