云备份 CBR-通过VMware备份主机批量恢复脚本:备份数据恢复操作

时间:2024-09-26 16:18:04

备份数据恢复操作

前提条件

  • 已准备好备份数据。
  • 完成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_0037.html