Sign inSign up

figassis/mysql-backup

By figassis

Updated almost 7 years ago

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

Image
0

1.2K

figassis/mysql-backup repository overview

Moved to GitLab: https://gitlab.com/davidhiendl/mysql-backup-to-restic

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

VariableDefaultDescription
LOG_LEVELinfoLog level, any of: debug,info,warning,error,fatal,panic
CONFIG_FILEconfig.yamlthe absolute or relative path to the configuration file

Docker Env Variables

VariableDefaultDescription
LOG_LEVELinfoLog level, any of: debug,info,warning,error,fatal,panic
CONFIG_FILE/var/run/secrets/config.yamlthe absolute or relative path to the configuration file

Dependencies

  • GO >= 1.9

Tag summary

Content type

Image

Digest

Size

389.5 MB

Last updated

almost 7 years ago

docker pull figassis/mysql-backup