Since it is possible to mongodump
/mongorestore
remotely, it makes sense to have them installed in a machine that is not the DB itself, right?
Is there a way to install a standalone mongodump
executable?
Eg. in order to dockerize my DB backup tool
Ubuntu has the tools separate: mongodb-org-tools
Alpine also has an edge/community package: mongodb-tools
I am using the node:alpine Docker to run mongodump/restore and upload to S3, it works well.
You could also try installing and then copying the binaries, but I imagine they have a lot of dependencies so you might as well find a way to use the tools package, or you'll be creating your own.