恢复集群

恢复集群,目前有两种恢复方式:

1. 基于快照备份,恢复所有表,对应 `tiup br restore full`
2. 基于日志备份,恢复到指定时间,对应`tiup br restore point`

接口URL

/api/v1/dms/br/restore

请求方式

POST

Content-Type

application/json

认证方式

Bearer auth

请求Header参数

参数名 示例值 参数类型 是否必填 参数描述
Accept application/json Text -
Content-Type application/json Text -

请求Body参数

{
    "BRTaskID": "b-82959789",
    "ClusterID": "tidb-f91e1f860d360502",
    "TargetClusterID": "tidb-67428cb2cd969236",
    "Type": 2
}
参数名 示例值 参数类型 是否必填 参数描述
BRTaskID b-xxx String 全量备份 ID,仅在基于快照备份恢复集群时需要
ClusterID - String 之前备份的集群 ID
RestoreTime 2023-05-10 14:23:24 String 恢复指定时间点,仅在基于日志备份恢复集群时需要
TargetClusterID - String 当前需要恢复的集群 ID
Type 2 Integer 如果是基于快照备份的恢复请填2,如果是基于日志备份的恢复请填3

成功响应示例

{
    "Data": {
        "BRTaskID": "r-23484224",
        "Storage": "s3://tem/br/tidb-test/0921?endpoint=http://172.16.6.62:9999&force-path-style=true"
    },
    "Success": true
}
参数名 示例值 参数类型 参数描述
code - String
data.BRTaskID r-xxx String 恢复任务ID
data.Storage s3://bucket/path?endpoint=
s3.amazonaws.com&force-path-style=true
String 恢复任务存储来源
message - String
success - Boolean
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""