A script which periodically backs up MySQL in a Docker container and retains a desired set.
Find a file
2026-03-20 16:23:53 +13: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 Updated to reflect that more recent MariaDB contrainers no longer work with the same commands. 2026-03-20 16:23:53 +13:00

The purpose of this script is to backup the contents of Docker container-based MySQL database 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.