Backup and Restore

Backup / restore 處理 crash consistency 之外的資料遺失:device failure、誤刪、software bug、ransomware、災害。Journal / COW 不能取代 backup。


Backup Types

TypeWhat is copiedRestoreCost
full backup所有需要保護的 files只需最近 fulldaily cost 高
incremental自上次 backup 以來改變的 filesfull + 每次 incrementalbackup 小、restore 慢
differential-style自上次 full 以來改變的 filesfull + 最新 differential越接近週期尾端越大

Restore Metrics

  • backup time:每天能花多少時間備份。
  • backup space:能保存多少版本。
  • restore time / RTO:災難後多久恢復服務。
  • recovery point / RPO:最多能接受遺失多久的變更。
  • retention:要保存多久以前的版本。

Practical Point

重要資料需要 off-site、多份 copy、immutable backup 或 replication。沒有定期測試 restore 的 backup,只是「看起來有備份」。