This container allows you to backup a mysql/mariadb database to S3, using mysqldump. Pass in your MySQL Database details (Hostname, User, Password, [port]), as well as your AWS Details (Bucketname, access ID, etc) and it will dump the database to S3.
Schedule with rancher scheduler to have a daily backup
services:
backup:
image: mitchese/mysql-backup-s3
environment:
MYSQL_PASSWORD: <BackupUserPass>
MYSQL_HOST: <192.168.1.1>
MYSQL_USER: <BackupUser>
S3_PREFIX: <Prefix Filename>
S3_BUCKET: <S3 Bucket name>
S3_SECRET_ACCESS_KEY: <your S3 Secret Key>
S3_ACCESS_KEY_ID: <your S3 Secret ID>
stdin_open: true
tty: true
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.pull_image: always
cron.schedule: '"0 54 * * * ?"'
Content type
Image
Digest
Size
32.9 MB
Last updated
over 9 years ago
docker pull mitchese/mysql-backup-s3