Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

README

The mysql-data Docker image aims at persisting the data needed for a mysql image.

Using the mysql-data image

docker pull equaldog/mysql-data
docker run --name mysql-data equaldog/mysql-data echo Data-only container for mysql

Backup the container

sudo docker run --volumes-from mysql-data -v $(pwd):/save ubuntu tar cvf /save/backup.tar /var/lib/mysql /etc/mysql /backup

Restore the container

sudo docker run -v /var/lib/mysql -v /etc/mysql -v /backup --name mysql-data-restore ubuntu /bin/bash
sudo docker run --volumes-from mysql-data-restore -v $(pwd):/save busybox tar xvf /save/backup.tar

Docker Pull Command
Owner
equaldog
Source Repository