可以使用属性文件简化 vSphere Replication 配置数据导出或实现导出自动化。
前提条件
- 确认已在 vSphere Replication 主机上安装 Java 1.8.x。
- 确认具有一个站点对,在受保护站点和恢复站点上均运行 vSphere Replication。
- 准备 export_vr_configuration.properties 文件。请参见用于自动导出和导入 vSphere Replication 配置数据的属性。
过程
示例
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --format --exportProperties=/opt/vmware/vr-impex-tool/sample.properties --exportPath=/opt/vmware/vr-impex-tool/ ***Copyright (c) 2018-2019 VMware, Inc. All rights reserved.*** Initiating using properties file. Establishing connection... Collecting data... Starting export... 2019-10-28 07:56:52,529 DEBUG - VR inventory export started. 2019-10-28 07:56:52,632 DEBUG - Replication groups export started. 2019-10-28 07:56:52,668 DEBUG - VR inventory export ended. 2019-10-28 07:56:53,329 DEBUG - Replication groups export ended. Writing to file started. Writing to file finished. Export ended successfully.