-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9da8fc
commit aa8b2f3
Showing
25 changed files
with
392 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
[note] | ||
**Note**: All commands are written for `juju >= v.3.0` | ||
|
||
If you are using an earlier version, check the [Juju 3.0 Release Notes](https://juju.is/docs/juju/roadmap#heading--juju-3-0-0---22-oct-2022). | ||
[/note] | ||
|
||
# How to create and list backups | ||
|
||
Creating and listing backups requires that you: | ||
* [Have a Charmed MySQL K8s deployed](/t/charmed-mysql-k8s-how-to-manage-units/9659) | ||
This guide contains recommended steps and useful commands for creating and managing backups to ensure smooth restores. | ||
|
||
## Prerequisites | ||
* A [deployed](/t/9659) MySQL K8s cluster | ||
* Access to S3 storage | ||
* [Have configured settings for S3 storage](/t/charmed-mysql-k8s-how-to-configure-s3/9651) | ||
* [Configured settings for S3 storage](/t/9651) | ||
|
||
Once Charmed MySQL K8s is `active` and `idle` (check `juju status`), you can create your first backup with the `create-backup` command: | ||
--- | ||
|
||
## Create a backup | ||
|
||
Once `juju status` shows Charmed MySQL K8s as `active` and `idle` you can create your first backup with the `create-backup` command: | ||
```shell | ||
juju run-action mysql-k8s/leader create-backup --wait | ||
juju run mysql-k8s/leader create-backup | ||
``` | ||
|
||
[note] | ||
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). | ||
[/note] | ||
|
||
## List backups | ||
|
||
You can list your available, failed, and in progress backups by running the `list-backups` command: | ||
```shell | ||
juju run-action mysql-k8s/leader list-backups --wait | ||
juju run mysql-k8s/leader list-backups | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.