jantman/mysqldump-s3

By jantman

Updated over 4 years ago

Dump all MySQL/MariaDB databases and sync results to an S3 bucket

Image
0

658

docker-mysqldump-s3

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.

Docker container to run mysqldump on a DB and sync results to S3. Usable as a scheduled job, i.e. an ECS task on a schedule.

Environment Variables

  • MYSQL_HOST - MySQL host or IP
  • MYSQL_USER - MySQL username
  • MYSQL_PASS - MySQL password
  • BUCKET_NAME - S3 Bucket Name
  • optionalMYSQLDUMP_OPTS - Options for running mysqldump. Defaults to: --verbose --comments --create-options --dump-date --routines --triggers
  • optionalDUMP_DATE_FORMAT - Format string (passed to date) for backup suffix. Defaults to: %H
  • optionalBUCKET_PREFIX - Prefix to sync files to in the S3 bucket. Defaults to: mariadb_backups/
  • optionalSKIP_DBS - Comma-separated list of database names to skip dumping. Defaults to: information_schema,mysql,performance_schema

Docker Pull Command

docker pull jantman/mysqldump-s3