Public | Automated Build

Last pushed: 2 years ago
Short Description
Use docker to host mysqlclient, aws cli to run and upload backup to S3
Full Description

mysql-backup-s3

Backup MySQL to S3 (supports periodic backups).

Based on https://github.com/schickling/dockerfiles/tree/master/mysql-backup-s3

Added support for checking IAM credentials and using.

Usage with provided keys

$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PATH=backup -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost foundplaces/mysql-backup-s3

Usage with IAM credentials

$ docker run -e S3_BUCKET=my-bucket -e S3_PATH=backup -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost foundplaces/mysql-backup-s3

Automatic Periodic Backups

You can additionally set the SCHEDULE environment variable like -e SCHEDULE="@daily" to run the backup automatically.

More information about the scheduling can be found here.

Docker Pull Command
Owner
foundplaces
Source Repository