請使用下列指令執行備份:
/opt/apigee/apigee-service/bin/apigee-service component_name backup
其中的 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 backup
.dump
如何執行備份作業:
停止元件 (PostgreSQL 和 Cassandra 需要執行備份):
/opt/apigee/apigee-service/bin/apigee-service component_name stop
執行備份指令:
/opt/apigee/apigee-service/bin/apigee-service component_name backup
接著,備份指令會:
- 建立下列目錄和檔案的 tar 檔案,其中 component_name 是元件名稱:
- 目錄
/opt/apigee/data/component_name
/opt/apigee/etc/component_name.d
- 檔案 (如果有的話)
/opt/apigee/token/application/component_name.properties
/opt/apigee/customer/application/component_name.properties
/opt/apigee/customer/defaults.sh
/opt/apigee/customer/conf/license.txt
- 目錄
- 在
/opt/apigee/backup/component_name
目錄中建立 .tar.gz 檔案。檔案名稱的格式如下:backup-year.month.day,hour.min.seconds.tar.gz
例如:
backup-2018.05.29,11.13.42.tar.gz
若是 PostgreSQL,檔案名稱的格式如下:
year.month.day,hour.min.seconds.dump
- 建立下列目錄和檔案的 tar 檔案,其中 component_name 是元件名稱:
啟動元件 (但必須執行的 PostgreSQL 和 Cassandra 需要執行備份):
/opt/apigee/apigee-service/bin/apigee-service component_name start
如果您在同一個節點中安裝了多個 Edge 元件,則可以使用單一指令備份所有元件:
/opt/apigee/apigee-service/bin/apigee-all backup
這個指令會為節點中的每個元件建立備份檔案。