云备份 CBR-详细步骤:备份数据恢复

时间:2024-09-02 19:23:38

备份数据恢复

前提条件

  • 已准备好备份数据。
  • 完成config.py脚本中的配置项赋值。
    config.py示例如下:
    #  IAM 鉴权参数
    iamDomain = ""
    iamUser = ""
    iamPassword = ""
    # 项目参数
    projectName = ""
    projectId = ""
    # 服务器参数
    # CentOS 7.9 64bit
    imageRef = ""
    volumeType = "SSD"
    flavorRef = "s7n.small.1"
    vpcId = ""
    subnetId = ""
    enterpriseProjectId = 0
    securityGroups = [
        ""
    ]
    keyName = ""
    # 备份数据参数
    backupIds = ["",
                 "",
                 "",
                 ""
                 ]
    # 备份数据回退参数
    serverIds = ["", ""]
    deletePublicip = False
    deleteVolume = True
    # 监控任务参数
    delayInSeconds = 10
support.huaweicloud.com/bestpractice-cbr/cbr_07_0040.html