MySQL / MariaDB

Create MySQL / MariaDB backup artifacts

mysql_dump

Dumps a MySQL or MariaDB database.

Typical Usage

host "db-host", hostname: "db.example.com"

job "db-backup" do
  resource "database", name: "my-database", host: "db-host"
  remotely as: "user" do
    mysql_dump user: "mysql-user", password: "secret"
  end
end

Input resources

Resources of type database are allowed.

Output resource

A resource of type file.

Command options

OptionDescription
userThe user account to use.Required: no
Defaults to: the current shell user
passwordThe password to provide.Required: no