转自亚马逊AWS官方博客
该方案讲述了常见的企业IT基础架构及应用系统从On-premise环境到AWS云端的两种灾备场景。
SLA
Cold Backup:RTO = 24小时,RPO = 24小时
Pilot Light:RTO = 4小时,RPO = 4小时
架构图
黄色线条代表Cold Backup复制,蓝色线条代表Pilot Light复制。
网络连接方式:
- VPN:使用托管VPN服务,通过互联网建立 Site-to-Site VPN
- 专线:使用 Direct Connect 服务,提供 1Gb 至 10Gb 带宽
解决方案
非结构化数据服务(NAS文件共享)
利用 AWS Storage Gateway File Gateway 模式实现非结构化数据的同步与灾备:
- 将 Storage Gateway 虚拟机镜像部署于本地 IDC VMware 虚拟化平台
- 定期 rsync 将 NAS 服务器文件拷贝至 Storage Gateway
- Storage Gateway 自动将文件同步至 S3 存储桶
- 云端虚拟机使用 s3fs 将 S3 存储桶挂载至本机卷进行文件访问
结构化数据服务(MySQL数据库)
- Cold Backup 模式:利用 XtraBackup 工具或原生备份工具对 MySQL 数据库进行定时备份并上传至云端
- Pilot Light 模式:通过 MySQL Binlog 复制实现较好的 RPO 指标
Web服务器镜像
- 将本地 IDC 中运行于 VMware 的虚拟机导出成 .ova 格式,使用 ec2 import 命令行导入至云端
- 在应用简单的情况下也可在云端重新部署
常见单机办公系统或2层架构(如OA等)
- AWS SMS(Server Migration Services)支持 VMware 与 Hyper-V 环境,可将虚拟机直接迁移到 AWS 平台成为 AMI
- 在 AWS 平台中可以方便使用 AMI 进行恢复或灾难演练
云上快速恢复的脚本已经上传至 GitHub。
成本分析(AWS ZHY宁夏区域)
| 模式 | 服务 | 类型 | 年费用(元) |
| Cold冷备份 | AMI (20GB) | 0.277/GB/月 | 66.48 |
| 数据备份至S3 (1TB) | 0.1755/GB/月 | 2156.54 |
| 含税合计 | | 2356.41 |
| Pilot Light | RDS db.m4.large/EBS 200G | 1.1733/h | 7131.2 |
| VPN m5.large | 0.678/h | 1720 |
| 含税合计 | | 11738.68 |
返回技术博客
Reprinted from the AWS Official Blog
This solution covers two common disaster recovery scenarios for migrating enterprise IT infrastructure and applications from on-premises environments to AWS.
SLA Targets
Cold Backup: RTO = 24 hours, RPO = 24 hours
Pilot Light: RTO = 4 hours, RPO = 4 hours
Architecture
Yellow lines represent Cold Backup replication; blue lines represent Pilot Light replication.
Network connectivity options:
- VPN: Managed VPN service establishing a Site-to-Site VPN over the internet
- Direct Connect: Dedicated connection providing 1Gbps to 10Gbps bandwidth
Solution
Unstructured Data (NAS File Sharing)
Use AWS Storage Gateway in File Gateway mode to sync and protect unstructured data:
- Deploy the Storage Gateway VM image on the on-premises VMware platform
- Periodically rsync NAS server files to Storage Gateway
- Storage Gateway automatically syncs files to an S3 bucket
- Cloud VMs mount the S3 bucket as a local volume using s3fs
Structured Data (MySQL Database)
- Cold Backup mode: Use XtraBackup or native backup tools to schedule MySQL backups and upload to the cloud
- Pilot Light mode: Use MySQL Binlog replication for a better RPO
Web Server Images
- Export VMware VMs as .ova format and import to AWS using the
ec2 import CLI command
- For simpler applications, redeploy directly on AWS
Office Systems and 2-Tier Applications (e.g., OA)
- AWS SMS (Server Migration Service) supports VMware and Hyper-V, migrating VMs directly to AWS as AMIs
- AMIs can be used for easy recovery or disaster recovery drills on AWS
Recovery scripts are available on GitHub.
Cost Analysis (AWS Ningxia Region)
| Mode | Service | Type | Annual Cost (CNY) |
| Cold Backup | AMI (20GB) | ¥0.277/GB/month | 66.48 |
| S3 Backup (1TB) | ¥0.1755/GB/month | 2156.54 |
| Total incl. tax | | 2356.41 |
| Pilot Light | RDS db.m4.large / EBS 200G | ¥1.1733/h | 7131.2 |
| VPN m5.large | ¥0.678/h | 1720 |
| Total incl. tax | | 11738.68 |
Back to Tech Blog