Docker image to backup all the running mysql containers
1.6K
/!\ This image is still in an experimental state /!\
TODO :
If you run this image on a Docker host, every container with the label "mysql-backup" will be backuped in "/backup/{container_name}/".
Simple way to test it :
docker run --rm -v /path/to/your/storage:/backup -v /var/run/docker.sock:/tmp/docker.sock:ro kitpages/mysql-backup
You can add the following environment variables to the "mysql-backup" container :
- BACKUP_MAX : The number of backups to keep. When reaching the limit, the old backup will be discarded. (default: no limit)
- BACKUP_DB : The database name to dump. (default : `--all-databases`)
- CRON_TIME : The interval of cron job to run mysqldump. `0 0 * * *` by default, which is every day at 00:00
You can add the following environment variables to a container to configure the way it will be backuped :
- BACKUP_MAX : The number of backups to keep. When reaching the limit, the old backup will be discarded. (default: no limit)
- BACKUP_DB : The database name to dump. (default : `--all-databases`)
Thanks to Tutum for their "tutumcloud/mysql-backup" image which this one is based on.
Content type
Image
Digest
Size
96 MB
Last updated
over 9 years ago
docker pull kitpages/mysql-backup