{
 "備份策略:3-2-1、RPO 與 RTO#2": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2
  ],
  "cards": [
   {
    "title": "RPO 復原點目標",
    "points": [
     "最多能接受遺失多久的資料",
     "24 小時:一天備份一次",
     "5 分鐘:持續複寫或日誌備份"
    ]
   },
   {
    "title": "RTO 復原時間目標",
    "points": [
     "多久內一定要恢復服務",
     "1 小時:流程要練習過",
     "越嚴格,成本越高"
    ]
   }
  ]
 },
 "備份策略:3-2-1、RPO 與 RTO#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "3",
    "points": [
     "至少三份資料",
     "正本加兩份備份"
    ]
   },
   {
    "title": "2",
    "points": [
     "至少兩種儲存媒體或系統"
    ]
   },
   {
    "title": "1",
    "points": [
     "至少一份放異地",
     "離線或不可變更更好"
    ]
   }
  ]
 },
 "備份策略:3-2-1、RPO 與 RTO#4": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "類型",
   "內容"
  ],
  "rows": [
   [
    "完整備份",
    "全部資料,還原最簡單"
   ],
   [
    "差異備份",
    "上次完整備份後的變動"
   ],
   [
    "增量備份",
    "上次任何備份後的變動,最省空間"
   ]
  ],
  "widths": [
   1,
   3
  ]
 },
 "備份策略:3-2-1、RPO 與 RTO#5": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "設定檔",
    "points": [
     "/etc 整個目錄"
    ]
   },
   {
    "title": "使用者資料",
    "points": [
     "家目錄",
     "網站內容",
     "應用程式資料"
    ]
   },
   {
    "title": "資料庫",
    "points": [
     "用專用工具匯出",
     "不要直接複製檔案"
    ]
   },
   {
    "title": "套件清單",
    "points": [
     "匯出成文字檔",
     "方便重建主機"
    ]
   }
  ]
 },
 "用 tar 與 rsync 備份#1": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   5,
   5
  ],
  "head": [
   "參數",
   "意義"
  ],
  "rows": [
   [
    "c / x / t",
    "建立 / 解開 / 列出"
   ],
   [
    "z / j / J",
    "gzip / bzip2 / xz"
   ],
   [
    "f",
    "指定檔名,放最後"
   ],
   [
    "v",
    "顯示過程"
   ],
   [
    "-C",
    "先切換到指定目錄"
   ]
  ],
  "widths": [
   1,
   2
  ]
 },
 "用 tar 與 rsync 備份#5": {
  "type": "table",
  "reveal": [
   0,
   0,
   5
  ],
  "head": [
   "rsync 參數",
   "意義"
  ],
  "rows": [
   [
    "-a",
    "封存模式,保留權限等"
   ],
   [
    "-v",
    "顯示詳細過程"
   ],
   [
    "-h",
    "易讀的單位"
   ],
   [
    "-z",
    "傳輸時壓縮"
   ],
   [
    "-n",
    "乾跑,只演練"
   ]
  ],
  "widths": [
   1,
   2
  ]
 },
 "還原演練、驗證與自動化#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ],
  "nodes": [
   {
    "label": "完整性",
    "sub": "檔案沒壞"
   },
   {
    "label": "內容正確",
    "sub": "還原後比對"
   },
   {
    "label": "可用性",
    "sub": "真的跑起來",
    "kind": "end"
   }
  ]
 },
 "還原演練、驗證與自動化#5": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "情境",
    "points": [
     "資料庫誤刪一張表",
     "整台主機毀損"
    ]
   },
   {
    "title": "步驟",
    "points": [
     "一步一步的指令",
     "半夜也看得懂"
    ]
   },
   {
    "title": "計時",
    "points": [
     "實際量花多久",
     "跟 RTO 比對"
    ]
   },
   {
    "title": "紀錄",
    "points": [
     "遇到什麼問題",
     "流程如何改善"
    ]
   }
  ]
 },
 "還原演練、驗證與自動化#6": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "停止寫入",
    "sub": "先停相關服務"
   },
   {
    "label": "保全現狀",
    "sub": "壞資料也先備份"
   },
   {
    "label": "還原到暫存",
    "sub": "確認內容再放回"
   },
   {
    "label": "修正權限",
    "sub": "chown / chmod"
   }
  ]
 },
 "還原演練、驗證與自動化#7": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   0,
   1,
   2,
   3
  ],
  "nodes": [
   {
    "label": "set -euo",
    "sub": "失敗就停下來"
   },
   {
    "label": "sha256sum",
    "sub": "產生雜湊並驗證"
   },
   {
    "label": "清理舊備份",
    "sub": "最後才刪 14 天前",
    "kind": "end"
   }
  ]
 },
 "日常維運清單與變更管理#2": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "head": [
   "每日項目",
   "檢查方式"
  ],
  "rows": [
   [
    "服務是否正常",
    "systemctl --failed"
   ],
   [
    "磁碟使用率",
    "df -h、df -i"
   ],
   [
    "備份有沒有成功",
    "備份日誌與最新備份檔"
   ],
   [
    "負載與記憶體",
    "uptime、free"
   ],
   [
    "登入有沒有異常",
    "登入失敗紀錄"
   ]
  ],
  "widths": [
   2,
   3
  ]
 },
 "課程總整理與下一步#2": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "第四章",
    "sub": "磁碟與 LVM",
    "color": 0
   },
   {
    "label": "第五章",
    "sub": "網路與防火牆",
    "color": 1
   },
   {
    "label": "第六章",
    "sub": "排程日誌監控",
    "color": 2
   },
   {
    "label": "第七章",
    "sub": "備份與維運",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "課程總整理與下一步#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "cards": [
   {
    "title": "先看再動",
    "points": [
     "先看狀態、權限、空間"
    ]
   },
   {
    "title": "先備份再改",
    "points": [
     "複製設定、快照、備份"
    ]
   },
   {
    "title": "留一條退路",
    "points": [
     "第二條 SSH、netplan try",
     "準備好主控台"
    ]
   },
   {
    "title": "改完立刻驗證",
    "points": [
     "語法檢查",
     "實際測試",
     "看日誌"
    ]
   },
   {
    "title": "最小權限",
    "points": [
     "帳號、sudo、防火牆",
     "服務權限"
    ]
   }
  ]
 },
 "課程總整理與下一步#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "沒開第二條連線",
    "points": [
     "改 SSH、防火牆或網路設定"
    ]
   },
   {
    "title": "fstab 寫錯",
    "points": [
     "重開機進 emergency mode"
    ]
   },
   {
    "title": "只備份沒還原",
    "points": [
     "從來沒有還原過"
    ]
   }
  ]
 }
}