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

Latest commit

 

History

History
38 lines (29 loc) · 1.51 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.51 KB

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