Minio Backup container for MariaDB
Note
Inspired by gh/SierraSoftworks/minback-mysql.
This container provides a trivially simple means to run mariadb-dump
and fire the results off
to a Minio instance.
- Dumps a single MariaDB database to an S3 bucket
- Lightweight and short lived
- Simple and readable implementation
- Compression and ARM64 and AMD64 Docker Images
docker run --rm --env-file backup.env ghcr.io/resmo/minback-mariadb:main
DB=my-db-table
DB_HOST=localhost
DB_PORT=3306
DB_USER=db-user
DB_PASSWORD=db-password
MINIO_SERVER=https://play.minio.io/
MINIO_ACCESS_KEY=minio
MINIO_SECRET_KEY=miniosecret
MINIO_BUCKET=backups
This container is configured using environment variables.
Database name to backup (required).
Database server host. Default localhost
.
TCP port the server listens to. Default 3306
.
User to be used to authenticate to the server. Default root
.
Password to be used to authenticate to the server (required).
The Minio server you wish to send backups to (required).
The Access Key used to connect to your Minio server (required).
The Secret Key used to connect to your Minio server (required).
The Minio bucket you wish to store your backup in (required).
The date format you would like to use when naming your backup files. Files are named $DATE_FORMAT.sql.bz2
.