PITR 与跨区域复制
PITR 与跨区域复制
# 恢复到时间点(生成新实例 appdb-restore)
aws rds restore-db-instance-to-point-in-time \
--source-db-instance-identifier appdb \
--target-db-instance-identifier appdb-restore \
--restore-time 2026-10-12T02:29:00Z
# 跨区域复制自动备份快照
aws rds copy-db-snapshot \
--source-db-snapshot-identifier arn:aws:rds:ap-northeast-1:123456789012:snapshot:rds:appdb-2026-10-12 \
--target-db-snapshot-identifier appdb-copy --region ap-southeast-1| 目标 | 恢复动作产生新实例,原实例不受影响 |
|---|---|
| 端点变化 | 新实例有独立 endpoint,应用连接串需要切换 |
| 跨区 | 先复制快照到目标区域再恢复 |
恢复耗时可观:大实例按数据量消耗数十分钟到数小时,RTO 测算应把恢复动作本身算进去。