Public Repository

Last pushed: 6 months ago
Short Description
Simple S3 Backups for MySQL
Full Description

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 * * * ?"'
Docker Pull Command
Owner
mitchese

Comments (0)