You can use a properties file to simplify or automate the export of vSphere Replication configuration data.
- Verify that you have Java 1.8.x installed on the vSphere Replication host machine.
- Verify that you have a site pair with vSphere Replication running on both the protected and the recovery site.
- Prepare an export_vr_configuration.properties file. See Properties for Automated Export and Import of vSphere Replication Configuration Data.
- ♦ Open a command shell, navigate to /opt/vmware/vr-impex-tool directory, and run the following command.
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive --exportPropererties=Path_to_properties_fileTo make the XML file more human-readable, add the
formatoption. Adding the
formatoption significantly increases the XML file size.
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive --format --exportProperties=Path_to_properties_file
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.