每次脚本在 vCenter Server Appliance 上修改 vCenter Server、Platform Services Controller 或 vSphere Update Manager 时,TLS 配置实用程序都会执行备份。如果需要备份到特定目录,可以执行手动备份。
不支持备份 ESXi配置。
对于
vCenter Server 或
Platform Services Controller,Windows 和设备的默认目录有所不同。
操作系统 |
备份目录 |
Windows |
c:\users\current_user\appdata\local\temp\yearmonthdayTtime |
Linux |
/tmp/yearmonthdayTtime |
过程
- 将目录更改为 vSphereTlsReconfigurator,然后更改为 VcTlsReconfigurator 子目录。
操作系统 |
命令 |
Windows |
C:\Program Files\VMware\CIS\vSphereTlsReconfigurator\
cd VcTlsReconfigurator |
Linux |
cd /usr/lib/vmware-vSphereTlsReconfigurator/
cd VcTlsReconfigurator |
- 运行以下命令以备份到特定目录。
操作系统 |
命令 |
Windows |
directory_path\VcTlsReconfigurator> reconfigureVc backup -d backup_directory_path
|
Linux |
directory_path/VcTlsReconfigurator> ./reconfigureVc backup -d backup_directory_path |
- 确认备份成功完成。
成功的备份类似于以下示例。由于
reconfigureVc backup命令运行的方式不同,每次运行该命令时显示的服务顺序可能会有所不同。
vCenter Transport Layer Security reconfigurator, version=6.5.0, build=4635484
For more information refer to the following article: https://kb.vmware.com/kb/2147469
Log file: "C:\ProgramData\VMware\vCenterServer\logs\vSphere-TlsReconfigurator\VcTlsReconfigurator.log".
================= Backing up vCenter Server TLS configuration ==================
Using backup directory: c:\users\<username>\appdata\local\temp\20161108T161539
Backing up: vspherewebclientsvc
Backing up: vmware-autodeploy-waiter
Backing up: rhttpproxy
Backing up: VMwareSTS
Backing up: vsphere-ui
Backing up: VMWareDirectoryService
Backing up: VMWareCAMService
- (可选) 如果稍后必须执行还原,可以运行以下命令。
reconfigure restore -d tmp directory or custom backup directory path