Skip to main content
type: mariadb produces a logical dump using mariadb-dump when available, falling back to mysqldump. The configuration is identical to MySQL — both tools accept the same flags. snapr picks the binary at runtime; you do not select it in the config.

Example

snapr.yaml

Options

Same as MySQL. All options apply.

Requirements

  • Either mariadb-dump (preferred) or mysqldump must be installed on the snapr host and available in PATH. snapr looks up mariadb-dump first; if it is missing, it falls back to mysqldump. Install at least one.
  • Install via the mariadb-client package on Debian/Ubuntu (provides mariadb-dump), or mysql-client for the fallback.
  • The backup user needs the same grants as MySQL: at minimum SELECT, LOCK TABLES, SHOW VIEW, EVENT, TRIGGER, PROCESS.

Notes

  • For mixed MySQL/MariaDB hosts, prefer the matching client package — flag compatibility is good but not perfect across major versions.

All databases

snapr.yaml