Docker container to backup mysql database to S3
10K+
Docker container to backup mysql database to S3 via s3cmd
While running mysql in containers backups, one of the options is to use separate stateless container for making backups and uploading them to the cloud.
You can run it via crontab or even jenkins (with build periodically).
docker run --rm \
-e AWS_ACCESS_KEY=xxx \
-e AWS_SECRET_KEY=xxx \
-e HOST=host \
-e USER=user \
-e PASSWORD=password\
-e DATABASE=database \
-e S3_PATH=bucket/directory \
caseycs/mysql-backup-s3
Use can specify xz compression parameters via XZ_OPTIONS: -e XZ_OPTIONS="-vv -T0 -1"
Content type
Image
Digest
Size
24.1 MB
Last updated
over 8 years ago
docker pull caseycs/mysql-backup-s3