每次脚本在 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 |
过程
- 将目录更改为 VcTlsReconfigurator。
操作系统 |
命令 |
Windows |
cd %VMWARE_CIS_HOME%\TlsReconfigurator\VcTlsReconfigurator |
Linux |
cd /usr/lib/vmware-TlsReconfigurator/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.7.0, build=8070195
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/20180422T224804
Backing up: vmware-sps
Backing up: vmdird
Backing up: vmware-rbd-watchdog
Backing up: vmware-vpxd
Backing up: vmware-updatemgr
Backing up: vmcam
Backing up: vsphere-client
Backing up: vami-lighttp
Backing up: rsyslog
Backing up: vmware-rhttpproxy
Backing up: vmware-stsd
- (可选) 如果稍后必须执行还原,可以运行以下命令。
reconfigureVc restore -d optional_custom_backup_directory_path