Edge for Private Cloud 4.18.05 版
您可以從備份元件時建立的檔案還原元件。
請使用下列指令執行還原作業:
/opt/apigee/apigee-service/bin/apigee-service component_name restore backupFile
其中 backupFile 是備份檔案的名稱,component_name 是元件的名稱。component_name 可以是下列其中一項:
apigee-cassandra(Cassandra)apigee-openldap(OpenLDAP)apigee-postgresql(PostgreSQL 資料庫)apigee-qpidd(魁北克)apigee-sso(邊緣單一登入)apigee-zookeeper(ZooKeeper)edge-management-server(管理伺服器)edge-management-ui(新版 Edge UI)edge-message-processor(訊息處理器)edge-postgres-server(Postgres 伺服器)edge-qpid-server(快速伺服器)edge-router(邊緣路由器)edge-ui(傳統版 UI)
例如:
/opt/apigee/apigee-service/bin/apigee-service apigee-cassandra restore backup-2016.03.17,14.40.41.tar.gz
備份檔案為選用項目。如果省略,Apigee 會使用 /opt/apigee/backup/component_name 中最新的檔案。
還原指令:
- 使用指定的備份檔案,或取得最新的備份檔案 (如未指定檔案名稱)。
- 檢查下列目錄是否為空白:
/opt/apigee/data/component_name /opt/apigee/etc/component_name.d
- 如果上述目錄並非空白,
restore指令會停止並要求您移除這些目錄。 - 停止元件。
- 從備份還原元件。