My setup is as follows:
So there is my idea to use docker to perform the mongodump on the NAS. A shell script "mongodump.sh" should wrap the docker call to mongodump with all needed params and I would call it like:
mongodump.sh --host rs/url -u backup -p "password" --out ./dump/
Is this possible with docker? What would the shell script look like?
If found the solution. The command I use to perform the mongodump via docker ist:
docker run --rm --name some-mongo -v /volume1/Backups/mongodump:/dumps --entrypoint mongodump mongo --host rs1/myserver.net -u backup -p "password" --out /dumps