Skip to content

Commit

Permalink
Preview PR pingcap/docs-tidb-operator#2406 and this preview is trigge…
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 7, 2023
1 parent 98ff6aa commit 50811d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ status:

### Delete the `VolumeBackup` CR

You can delete the `VolumeBackup` CR by running the following commands:
If you set `spec.template.cleanPolicy` to `Delete`, when you delete the `VolumeBackup` CR, the BR Federation Manager will clean up the backup file and the volume snapshots on AWS.

To delete the `VolumeBackup` CR, run the following commands:

```shell
kubectl delete backup ${backup-name} -n ${namespace}
```

If you set `spec.template.cleanPolicy` to `Delete`, when you delete the CR, the BR Federation Manager will clean up the backup file and the volume snapshots on AWS.

## Scheduled volume backup

To ensure regular backups of the TiDB cluster and prevent an excessive number of backup items, you can set a backup policy and retention policy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Before restoring a TiDB cluster across multiple Kubernetes from EBS volume snaps

1. Download the [backup-rbac.yaml](https://github.com/pingcap/tidb-operator/blob/master/manifests/backup/backup-rbac.yaml) file to the restore server.

2. Supposed that you deploy the TiDB cluster in `${namespace}`, create the RBAC-related resources required for the restore in this namespace by running the following command.
2. Create the RBAC-related resources required for the restore by running the following command. Note that the RBAC-related resources must be put in the same `${namespace}` as the TiDB cluster.

```shell
kubectl apply -f backup-rbac.yaml -n ${namespace}
Expand Down

0 comments on commit 50811d0

Please sign in to comment.