Skip to main content
type: mysql uses mysqldump to produce a logical dump. For MariaDB, use type: mariadb instead — it prefers mariadb-dump and falls back to mysqldump.

Example

snapr.yaml

Options

Requirements

  • mysqldump must be installed on the snapr host and available in PATH. Install it via your distro’s mysql-client or default-mysql-client package.
  • The backup user typically needs at minimum SELECT, LOCK TABLES, SHOW VIEW, EVENT, TRIGGER, and — when dumping replicas or using --single-transactionPROCESS.

Notes

  • extraParams keys are prefixed with --. Use an empty string value for boolean flags.
  • excludeTables is ignored when allDatabases: true is set.

All databases via socket

snapr.yaml