curl -JO https://gist.githubusercontent.com/sebastian13/2bd018d47f5e5c4bca1f58055b9f47c9/raw/docker-zabbix-mysql-dump.sh
curl -JO https://gist.githubusercontent.com/sebastian13/2bd018d47f5e5c4bca1f58055b9f47c9/raw/docker-zabbix-mysql-restore.sh
chmod +x docker-zabbix-mysql-*.sh
MYSQL_DATABASE=example
MYSQL_ROOT_PASSWORD=123456
services:
mysql:
image: mariadb
...
env_file: .env
other:
...
environment:
- WORDPRESS_DB_NAME=${MYSQL_DATABASE}
- WORDPRESS_DB_PASSWORD=${MYSQL_ROOT_PASSWORD}
- This omits tables listed in https://blog.zabbix.com/backups-to-the-rescue/23442/
- Another nice list of tables to exclude from backup: https://github.com/maxhq/zabbix-backup/blob/4a093d348a3ca07402c6482990a3a8e29a9b6a86/zabbix-dump#L607