Mysql server with backup scheduled with cron.
753
This image is the easier way to install mysql server and crontable backup. Just edit the cron.conf and schedule when you want the backup will run.
##Prerequisites Add your user to docker group to be able to use it with non root user:
$ sudo usermod -aG docker username
Download the repository on your public server.
$ docker run --name akg-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root --volume=$(pwd)/src:/src [ -e parameters ] anthonykgross/docker-mysql-backup-cron
or
$ apt-get install git # For debian
$ git clone https://github.com/anthonykgross/docker-mysql-backup-cron.git
$ cd docker-mysql-backup-cron/
$ docker-compose up -d
You can find every useful directories in the docker-compose.yml and use the --volume docker parameter to override them by yours.
$ docker run --name akg-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root --volume=$(pwd)/src:/src anthonykgross/docker-mysql-backup-cron
MYSQL_MAX_CONNEXIONS Upgrade the number of max clients connections.
More parameters : https://hub.docker.com/_/mysql/
Anthony K GROSS
Code and documentation copyright 2017. Code released under the MIT license.
Content type
Image
Digest
Size
112 MB
Last updated
about 9 years ago
docker pull anthonykgross/docker-mysql-backup-cron