Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

A go binary and docker container to automate backup of MySQL to S3 using mysqldump

Notifications You must be signed in to change notification settings

davidhiendl/mysql-backup-to-restic

Repository files navigation

MySQL Backup to Restic

WARNING: ALPHA QUALITY; MINIMAL TESTING; USE AT YOUR OWN RISK

Description

Create MySQL backups with mysqldump and backup them with Restic to any supported backend (note: initial implementation only supports S3).

Docker Image

Using pre-built image:

docker run -ti \
    -v ./config-dir/config.yaml:/var/run/secrets/config.yaml \
    dhswt/mysql-backup-to-restic:alpha

Building the image yourself:
The entire build (including building the binary) is included in the Dockerfile.

docker build -t your-username/mysql-backup-to-restic:<tag>

Binary env variables

Variable Default Description
LOG_LEVEL info Log level, any of: debug,info,warning,error,fatal,panic
CONFIG_FILE config.yaml the absolute or relative path to the configuration file

Docker Env Variables

Variable Default Description
LOG_LEVEL info Log level, any of: debug,info,warning,error,fatal,panic
CONFIG_FILE /var/run/secrets/config.yaml the absolute or relative path to the configuration file

Dependencies

  • GO >= 1.9

About

A go binary and docker container to automate backup of MySQL to S3 using mysqldump

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published