Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting our team. We will be in touch shortly.Close

Create and List Backups

:information_source: Hint: Use Juju 3. Otherwise replace juju run ... with juju run-action --wait ... for Juju 2.9.

Creating and listing backups requires that you:

Once Charmed MySQL is active and idle (check juju status), you can create your first backup with the create-backup command:

juju run mysql/leader create-backup

If you have a cluster of one unit, you can run the create-backup action on mysql-k8s/leader (which will also be the primary unit).

Otherwise, you must run the create-backup action on a non-primary unit (see juju status or run juju run-action mysql-k8s/leader get-cluster-status to find the primary unit).

You can list your available, failed, and in progress backups by running the list-backups command:

juju run mysql/leader list-backups

Last updated 7 days ago. Help improve this document in the forum.