Docker container for running mysqldump as a one-off command
1.1K
Simple and small container to backup MySQL databases.
Set the following environment variables on the container.
MYSQL_HOSTMYSQL_USERMYSQL_PASSWORDMYSQL_DATABASEAnd mount your backup volume into the container at /backup.
On start the container runs mysqldump with the given env variables.
The result is named with the current timestamp and stored under /backup/.
Run this as a one-off docker command
docker run --env MYSQL_HOST=1.2.3.4 \
--env MYSQL_USER=root \
--env MYSQL_PASSWORD=password \
--env MYSQL_DATABASE=foobarbaz \
--volume ${PWD}:/backup \
mlllab/mysqldump
Content type
Image
Digest
Size
10.7 MB
Last updated
about 8 years ago
docker pull mlllab/mysqldump