Sign inSign up

foundplaces/mysql-backup-s3

By foundplaces

•Updated over 10 years ago

Use docker to host mysqlclient, aws cli to run and upload backup to S3

Image
0

2.8K

foundplaces/mysql-backup-s3 repository overview

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

Tag summary

Content type

Image

Digest

Size

24.9 MB

Last updated

over 10 years ago

docker pull foundplaces/mysql-backup-s3