Simple shell script to back-up MariaDB and MySQL databases from within a container

Marcel Stangenberger e30f6bc290 Update 'README.md' 11 months ago
README.md e30f6bc290 Update 'README.md' 11 months ago
backup.sh 6cf42a53e2 Add 'backup.sh' 11 months ago

README.md

Usage

  1. Create a user with docker access rights
  2. Mount filesystem "backup" to /mnt in the MySQL or MariaDB container
  3. Create a cronjob on the docker host along the lines of: 00 0,12 * * * docker container exec /mnt/backup.sh