Skip to content

tidb-kubernetes: add backup and restore usage docs#1945

Closed
TomShawn wants to merge 4 commits into
pingcap:masterfrom
TomShawn:k8s-b&r
Closed

tidb-kubernetes: add backup and restore usage docs#1945
TomShawn wants to merge 4 commits into
pingcap:masterfrom
TomShawn:k8s-b&r

Conversation

@TomShawn
Copy link
Copy Markdown
Contributor

@TomShawn TomShawn commented Mar 4, 2020

What is changed, added or deleted? (Required)

Add documents for the CRD-based backup and restoration method for TiDB Operator 1.1 or later.

All changes in this PR are migrated to pingcap/docs-tidb-operator#1, so this PR is closed.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version, including v4.0 changes for now)
  • v3.1 (TiDB 3.1 versions)
  • v3.0 (TiDB 3.0 versions)
  • v2.1 (TiDB 2.1 versions)

If you select two or more versions from above, to trigger the bot to cherry-pick this PR to your desired release version branch(es), you must add corresponding labels such as needs-cherry-pick-3.1, needs-cherry-pick-3.0, and needs-cherry-pick-2.1.

What is the related PR or file link(s)?

@TomShawn TomShawn changed the title tidb-kubernetes: add backup and restore usage docs [WIP]tidb-kubernetes: add backup and restore usage docs Mar 4, 2020
@TomShawn TomShawn added translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn. status/WIP This PR is still working in progress. labels Mar 5, 2020
@TomShawn TomShawn added status/PTAL This PR is ready for reviewing. and removed status/WIP This PR is still working in progress. labels Mar 9, 2020
@TomShawn TomShawn changed the title [WIP]tidb-kubernetes: add backup and restore usage docs tidb-kubernetes: add backup and restore usage docs Mar 9, 2020
@TomShawn TomShawn requested review from onlymellb, tennix and yikeke March 9, 2020 07:11
@TomShawn
Copy link
Copy Markdown
Contributor Author

@yikeke @onlymellb @tennix PTAL, thanks!


### Ad-hoc backup process

Create the `Backup` CR and back up data to GSC:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Create the `Backup` CR and back up data to GSC:
Create the `Backup` CR and back up data to GCS:

kubectl get bk -n test1 -owide
```

More `Backup` CRs are as described follows:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
More `Backup` CRs are as described follows:
More `Backup` CRs configurations are as described follows:

* `.spec.from.host`: the address of the TiDB cluster to be backed up.
* `.spec.from.port`: the port of the TiDB cluster to be backed up.
* `.spec.from.user`: the accessing user of the TiDB cluster to be backed up.
* `.spec.from.tidbSecretName`: the secrete of the credential needed by the TiDB cluster to be backed up.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `.spec.from.tidbSecretName`: the secrete of the credential needed by the TiDB cluster to be backed up.
* `.spec.from.tidbSecretName`: the secret of the credential needed by the TiDB cluster to be backed up.

@yikeke yikeke closed this Mar 23, 2020
@yikeke yikeke removed the status/PTAL This PR is ready for reviewing. label Mar 23, 2020
@TomShawn
Copy link
Copy Markdown
Contributor Author

All changes in this PR are migrated to pingcap/docs-tidb-operator#1, so this PR is closed.

@TomShawn TomShawn deleted the k8s-b&r branch March 23, 2020 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tidb-in-k8s-v1.1 size/large Changes of a large size. translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants