A script which periodically backs up MySQL/MariaDB in a Docker container and retains a desired set.
Find a file
2025-09-02 20:34:40 +12:00
conf.d initial commit of new mysql backup script 2025-09-02 10:08:16 +12:00
.gitignore initial commit of working script 2025-09-02 20:34:02 +12:00
LICENSE initial commit of new mysql backup script 2025-09-02 10:08:16 +12:00
mysqlbackup initial commit of working script 2025-09-02 20:34:40 +12:00
mysqlbackup-cron initial commit of new mysql backup script 2025-09-02 10:08:16 +12:00
README.md initial commit of new mysql backup script 2025-09-02 10:08:16 +12:00

The purpose of this script is to backup the contents of Docker container-based database (either MySQL or MariaDB) to a local 'dump' file (SQL format), which is then compressed to conserve disk space.

The system is designed to be run regularly (perhaps hourly, or daily) via cron, and to keep a pre-determined (via configuration) number of past, deleting excess backup files to conserve disk space.