每次脚本修改 vCenter Server 时,TLS 配置实用程序都会执行备份。如果需要备份到特定目录,可以执行手动备份。

不支持备份 ESXi配置。

对于 vCenter Server,默认目录为 /tmp/yearmonthdayTtime

过程

  1. 将目录更改为 /usr/lib/vmware-TlsReconfigurator/VcTlsReconfigurator
  2. 要备份到特定目录,请运行以下命令:
    directory_path/VcTlsReconfigurator> ./reconfigureVc backup -d backup_directory_path
  3. 确认备份成功完成。
    成功的备份类似于以下示例。由于 reconfigureVc backup命令运行的方式不同,每次运行该命令时显示的服务顺序可能会有所不同。
    vCenter Transport Layer Security reconfigurator, version=7.0.0, build=15518531
    For more information refer to the following article: https://kb.vmware.com/kb/2147469
    Log file: "/var/log/vmware/vSphere-TlsReconfigurator/VcTlsReconfigurator.log".
    ================= Backing up vCenter Server TLS configuration ==================
    Using backup directory: /tmp/20200206T183550
    Backing up: vmware-rbd-watchdog
    Backing up: vmware-vpxd
    Backing up: vmcam
    Backing up: vmware-stsd
    Backing up: vmdird
    Backing up: vmware-sps
    Backing up: vmware-rhttpproxy
    Backing up: vami-lighttp
    Backing up: vmware-updatemgr
    Backing up: rsyslog
  4. (可选) 如果稍后必须执行还原,可以运行以下命令。
    reconfigureVc restore -d optional_custom_backup_directory_path