How to create and list backups
Creating and listing backups requires that you:
- Have a Charmed MySQL K8s deployed
- Access to S3 storage
- Have configured settings for S3 storage
Once Charmed MySQL K8s is active
and idle
(check juju status
), you can create your first backup with the create-backup
command:
juju run-action mysql-k8s/leader create-backup --wait
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-action mysql-k8s/leader list-backups --wait