您可以使用內容檔案簡化或自動匯出 vSphere Replication 組態資料。
必要條件
- 確認已在 vSphere Replication 主機上安裝 Java 1.8.x。
- 確認您具有站台配對,並且 vSphere Replication 在受保護和復原站台上均正在執行。
- 準備 export_vr_configuration.properties 檔案。請參閱用於自動匯出和匯入 vSphere Replication 組態資料的內容。
程序
- ♦ 開啟命令 shell,導覽至 /opt/vmware/vr-impex-tool 目錄,然後執行下列命令。
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive --exportPropererties=Path_to_properties_file
若要讓 XML 檔案的可讀性更佳,請新增format
選項。新增format
選項會大幅度增加 XML 檔案大小。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.