name: MariaDB ## From: mysql Ver 15.1 Distrib 10.0.21-MariaDB docker-image: docker.0k.io/mariadb:1.0.0 maintainer: "Valentin Lab " provides: mysql-database: data-resources: - /var/lib/mysql - /var/backups/mysql uses: schedule-command: constraint: optional auto: pair solves: backup: "Automatic regular dumps for backuping purpose" default-options: schedule: "31 * * * *" ## schedule backup every hour ## This one is useful only if previous relation is used backup: constraint: optional auto: pair solves: backup: "Automatic regular backups of dumps" default-options: ## First pattern matching wins, no pattern matching includes. ## include-patterns are checked first, then exclude-patterns ## Patterns rules: ## - ending / for directory ## - '*' authorized ## - must start with a '/', will start from $SERVICE_DATASTORE exclude-patterns: - "/var/lib/" ## mariadb working data files - "/var/backups/mysql/*.inprogress" ## database dump in progress