A Bash script version backup dumps of a database in a docker container managed by Docker Compose
Go to file
Dave Lane 5153376828 adding NICE and NICE_VAL and ability to override backup numbers in config 2022-11-25 16:17:05 +13:00
.gitignore updated script to work in new location closer to Mastodon code 2019-10-10 02:57:41 +00:00
LICENSE Initial commit 2018-02-08 03:44:40 +00:00
README.md Add README.md 2022-06-09 03:36:03 +00:00
dbbackup-cron Fixed path for config file in cron invocation. 2022-11-15 06:47:53 +00:00
dbbackup-docker-compose adding NICE and NICE_VAL and ability to override backup numbers in config 2022-11-25 16:17:05 +13:00
default-docker-compose.conf-sample adding NICE and NICE_VAL and ability to override backup numbers in config 2022-11-25 16:17:05 +13:00
default-mariadb-docker-compose.conf-sample updating .conf to .conf-sample and tweaking the mariadb scirpt 2022-06-09 15:57:32 +12:00
mariadbbackup-docker-compose tweak to specifying config file handling 2022-06-17 02:10:29 +00:00
pgdbbackup initial commit of containerised MariaDB backup functionality 2022-06-09 15:26:20 +12:00

README.md

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