Skip to content

Create a MySQL backup

This command helps you create a backup of a specific database. Very useful when you don't want your backups to include other components that you don't intend on restoring later.

Usage

skpr mysql backup create stg default
Creating new mysql backup
stg-jq7wc

More information

skpr mysql backup create --help
usage: skpr mysql backup create [<flags>] [<environment>] [<database-name>]

Create an mysql backup on demand

Flags:
      --help  Show context-sensitive help (also try --help-long and --help-man).
  -w, --wait  Wait for mysql backup to complete

Args:
  [<environment>]    Environment to backup mysql from
  [<database-name>]  Database to backup from the environment

Database Name (<database-name>)

Argument <database-name> refers to the name of the MySQL database which is default by default.

What's next?

After creating a backup, consider one of the following: