MySQL backup script in a Docker image.
MySQL backup Docker image
Production ready Docker container for MySQL backup.
Features - why using this image instead of several others?
- Uses alpine base image
- This image is as small as possible
- Uses linked MySQL DB
- Waits for MySQL container to be ready
- Uses cronjob to call backup script
- Writes .sql.bz2 files to /backup for every database in the linked MySQL server
sudo docker run \ -v ./backup:/backup \ -e MYSQL_HOST=db \ -e MYSQL_ROOT_PASSWORD=password \ konjak/mysql-backup
Docker Pull Command