Sign inSign up

anthonykgross/docker-mysql-backup-cron

By anthonykgross

•Updated about 5 years ago

Mysql server with backup scheduled with cron.

Image
0

753

anthonykgross/docker-mysql-backup-cron repository overview

Docker pulls

⁠What is anthonykgross/docker-mysql-backup-cron ?

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

⁠Get docker-mysql-backup-cron

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

⁠Parameters

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/⁠

⁠Creator

Anthony K GROSS

Code and documentation copyright 2017. Code released under the MIT license⁠.

Tag summary

Content type

Image

Digest

Size

112 MB

Last updated

about 9 years ago

docker pull anthonykgross/docker-mysql-backup-cron