備份與災難復原
System ↔ System排程備份 → 驗證 → 複製 → 測試還原。
5 個節點 · 5 條連接it-ops
systemclidb
視覺化
建立快照db
完整的資料庫與檔案系統快照。
↓sequential→ 驗證完整性
驗證完整性system
備份檔案的校驗碼驗證。
↓sequential→ 複製至災難復原區域
複製至災難復原區域api
複製至地理位置分離的備援地點。
↓conditional→ 測試還原 (每月)
↓sequential→ 備份報告
測試還原 (每月)cicd
還原至測試環境並驗證結果。
↓sequential→ 備份報告
備份報告system
記錄備份狀態、大小及耗時。
uc-backup-recovery.osop.yaml
osop_version: "1.0"
id: "backup-recovery"
name:"備份與災難復原"
description:"排程備份 → 驗證 → 複製 → 測試還原。"
nodes:
- id: "snapshot"
type: "db"
name: "建立快照"
description: "完整的資料庫與檔案系統快照。"
- id: "verify"
type: "system"
name: "驗證完整性"
description: "備份檔案的校驗碼驗證。"
- id: "replicate"
type: "api"
name: "複製至災難復原區域"
description: "複製至地理位置分離的備援地點。"
retry_policy:
max_attempts: 3
- id: "test_restore"
type: "cicd"
subtype: "test"
name: "測試還原 (每月)"
description: "還原至測試環境並驗證結果。"
timeout_sec: 3600
- id: "report"
type: "system"
name: "備份報告"
description: "記錄備份狀態、大小及耗時。"
edges:
- from: "snapshot"
to: "verify"
mode: "sequential"
- from: "verify"
to: "replicate"
mode: "sequential"
- from: "replicate"
to: "test_restore"
mode: "conditional"
when: "schedule.monthly_test == true"
- from: "replicate"
to: "report"
mode: "sequential"
- from: "test_restore"
to: "report"
mode: "sequential"