This is a lightweight Docker image designed to create and manage backups for your MySQL databases. It runs a modified version of the popular AutoMySQLBackup utility, optimized for containerized environments. You can run it for a one-shot backup on demand or configure it to run automatically on a recurring basis using a cron schedule.
The image is highly flexible and can be configured entirely through environment variables. This allows you to tailor the backup process to your specific needs. Key configuration options include:
gzip or bzip2 for your backup files.This tool provides a simple yet powerful solution for automating your MySQL backup strategy within a Docker ecosystem.
services:
automysqlbackup:
image: selim13/automysqlbackup:latest
container_name: automysqlbackup
environment:
- DBHOST=mysql
- USERNAME=${DB_USERNAME}
- PASSWORD=${DB_PASSWORD}
- DBNAMES=all
volumes:
- ./backups:/backup
restart: unless-stopped
DB_USERNAME=root
DB_PASSWORD=your_super_secret_password
Auto-fetched 8 minutes ago
Auto-fetched 8 minutes ago