Amazon EC2-自动还原快照 [英] Amazon EC2 - Automatic Restore Snapshot

查看:532
本文介绍了Amazon EC2-自动还原快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在Amazon中设置一个演示环境的示例环境,该环境包括一个预配置的EC2映像,该映像每小时将其自身重置为快照配置,这将是一个Linux VM.

I'm looking to setup a demo environment in Amazon that consists of a pre-configured EC2 image that resets itself back to a snapshot configuration every hour, this is would be a Linux VM.

在EC2中执行此操作的最佳方法是什么?亚马逊是否提供任何用于计划和还原到快照的工具,还是需要通过第三方VM或软件来完成?

What would be the best way to go about doing this in EC2? Does Amazon offer any tools for scheduling and reverting to the snapshot or would this need to be done from a third party VM or software?

推荐答案

Amazon EC2中没有类似于VMWare的快照"功能(您可以在其中回滚到时间).

There is no VMWare-like 'snapshot' functionality in Amazon EC2 (where you can roll-back to a point-in-time).

与Amazon EC2一起使用的通过网络连接的磁盘存储系统称为Amazon Elastic Block Store(EBS).尽管EBS具有快照"功能,但实际上它会备份EBS卷并将其存储在Amazon S3中.然后可以使用快照创建新的EBS卷,该卷将包含与创建快照时原始磁盘相同的内容.

The network-attached disk storage system used with Amazon EC2 is called Amazon Elastic Block Store (EBS). While EBS does have a 'snapshot' function, this actually takes a backup of an EBS Volume and stores it in Amazon S3. The snapshot can then be used to create a new EBS volume, which will contain the same contents as the original disk at the time the snapshot was created.

一种选择是启动一个 Amazon EC2实例,该实例将根据指示的Amazon Machine Image(AMI)自动创建一个新的启动磁盘.这是启动具有相同磁盘内容的新计算机的方法.但是,这可能不适合您的每半小时还原",因为它需要启动新机器,这也将触发新的每小时计费周期.

One option would be to launch a new Amazon EC2 instance, which will automatically create a new boot disk from the indicated Amazon Machine Image (AMI). This is the way to launch new machines with the same disk content. However, this might not lend itself well to your "revert every half hour" since it requires a new machine to be started, which will also trigger a new hourly billing cycle.

您也许可以脚本来删除文件或重新加载某些数据库表,但这取决于您的特定系统和应用程序.

You might be able to script the deletion of files or the reload of some database tables, but this will depend upon your particular system and applications.

这篇关于Amazon EC2-自动还原快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆