Moved to GitLab: https://gitlab.com/davidhiendl/mysql-backup-to-restic
Create MySQL backups with mysqldump
and backup them with Restic
to any supported backend (note: initial implementation only supports S3).
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>
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 |
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 |
- GO >= 1.9