從備份還原
您可以在備份功能時,透過先前建立的檔案還原元件
新增該元件您可以使用 restore
指令來執行此操作。
請注意,restore
指令:
- 使用指定的備份檔案,或取得最新的備份檔案 (如果檔案名稱無效)
。
- 確認元件的資料目錄為空白。
- 停止元件。您必須在還原後明確重新啟動元件。
本節說明如何使用 restore
指令。
如何透過備份檔案還原元件:
- 確認下列目錄為空白:
/opt/apigee/data/component_name
/opt/apigee/etc/component_name.d
如果內容並非空白,請使用以下指令刪除其中的內容:
rm -r /opt/apigee/data/component_name
rm -r /opt/apigee/etc/component_name.d
- 使用下列指令還原先前的設定和資料:
/opt/apigee/apigee-service/bin/apigee-service component_name restore backup_file
在此情況下:
- 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)
- backup_file 是您建立檔案的
「備份」該元件;此值不包含
路徑包含「backup-」前置字串和副檔名例如:
backup-2019.03.17,14.40.41.tar.gz
。
例如:
/opt/apigee/apigee-service/bin/apigee-service apigee-cassandra restore backup-2019.03.17,14.40.41.tar.gz
您不一定要指定 backup_file。如果省略此步驟,Apigee 會使用最新的檔案
在「/opt/apigee/backup/component_name
」中。
restore
指令會重新套用已備份的設定,並將
以及備份發生當下的資料。
- 重新啟動元件,如下列範例所示
顯示:
/opt/apigee/apigee-service/bin/apigee-service component_name start
,瞭解如何調查及移除這項存取權。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-23 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2024-08-23 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-08-23 (世界標準時間)。"],[],[]]