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) ormysqldumpmust be installed on the snapr host and available inPATH. snapr looks upmariadb-dumpfirst; if it is missing, it falls back tomysqldump. Install at least one. - Install via the
mariadb-clientpackage on Debian/Ubuntu (providesmariadb-dump), ormysql-clientfor 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