id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id |
title |
category |
status |
canonical_id |
aliases |
duplicate_of |
source_trust_level |
confidence_score |
verification_status |
tags |
raw_sources |
last_reinforced |
github_commit |
tech_stack |
| wiki-2026-0508-backups |
Backups |
10_Wiki/Topics |
verified |
self |
| Backup Strategy |
| Disaster Recovery |
| 백업 |
|
none |
A |
0.9 |
applied |
|
|
2026-05-10 |
applied |
| language |
framework |
| Bash/Python |
restic/borg/AWS Backup |
|
Backups
매 한 줄
"매 backup 은 restore 가 검증된 backup 만이다.". Backups 는 매 3-2-1 rule (3 copies, 2 media, 1 offsite) + RTO/RPO target + 정기 restore drill 의 trio. 2026 의 standard: incremental dedup (restic/borg) + immutable object lock (S3 Object Lock, Azure Immutable Blob) + ransomware-resistant air gap.
매 핵심
매 3-2-1-1-0 Rule (modern)
- 3 copies of data.
- 2 different media types.
- 1 offsite copy.
- 1 immutable / air-gapped (anti-ransomware, 매 2020+ 추가).
- 0 errors after restore verification.
매 RTO vs RPO
- RTO (Recovery Time Objective): 매 outage 후 service 복구까지 허용 시간.
- RPO (Recovery Point Objective): 매 허용 가능한 data loss window.
- 매 RTO=1h / RPO=15min 이면 hot standby 필요.
매 Backup Type
- Full: 매 전체 — slow, large, simple restore.
- Incremental: 매 since last backup — fast, smaller, restore chain.
- Differential: 매 since last full — middle ground.
- Snapshot (CoW): 매 ZFS/btrfs/LVM/EBS — instant, space-efficient.
- Continuous (CDC): 매 every transaction — Postgres WAL, MySQL binlog.
매 응용
- DB backup (pg_basebackup + WAL archive).
- File backup (restic, borg, Time Machine).
- VM/disk snapshot (EBS, GCP PD, ZFS).
- Object store replication (S3 CRR).
- App-level (export-import, logical dump).
💻 패턴
restic encrypted incremental backup
Postgres PITR setup
S3 Object Lock (immutable, ransomware-proof)
Restore drill automation
ZFS snapshot + send
매 결정 기준
| 상황 |
Approach |
| Files, small-mid |
restic / borg |
| Postgres prod |
pg_basebackup + WAL archive (PITR) |
| MySQL prod |
xtrabackup + binlog |
| VM |
snapshot + offsite replica |
| Multi-cloud |
S3-compatible + CRR |
| Compliance (WORM) |
S3 Object Lock COMPLIANCE mode |
기본값: 매 restic to S3 with Object Lock + nightly restore drill.
🔗 Graph
🤖 LLM 활용
언제: backup script generation, restore runbook drafting, log anomaly summarization.
언제 X: 매 actual restore execution — manual gate 필요.
❌ 안티패턴
- No restore test: 매 가장 흔한 실패 — backup 은 되는데 restore 가 안 됨.
- Single copy: 매 disk fail 한 방에 잃음.
- No encryption: 매 backup 이 attack vector — at-rest encrypt 필수.
- No immutability: 매 ransomware 가 backup 까지 암호화.
- Forever retention: 매 비용 폭발 + GDPR 위반 가능.
🧪 검증 / 중복
- Verified: restic docs; AWS Backup whitepaper; Veeam 3-2-1-1-0 guide; PostgreSQL PITR docs.
- 신뢰도 A.
🕓 Changelog
| 날짜 |
변경 |
| 2026-05-08 |
Phase 1 |
| 2026-05-10 |
Manual cleanup — 3-2-1-1-0 + restic/PG PITR/S3 Object Lock |