如何让每天备份我的EC2实例? [英] How to make a daily back up of my ec2 instance?

查看:884
本文介绍了如何让每天备份我的EC2实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于社区的Linux AMI EC2 中的 AWS 。现在,我想借此每天备份我的实例,并上传图像到 S3

I have a community AMI based Linux EC2 instance in AWS. Now I want to take a daily back up of my instance, and upload that image in to S3.

时,这样做回了我的EC2实例的正确方法是什么?任何人可以帮助我指出了正确的方法采取备份我的EC2实例?

Is that the correct way of doing the back up of my EC2 instance? Can anybody help me to point out the correct method for taking back up of my EC2 instance?

推荐答案

希望您的实例是<一个href="http://stackoverflow.com/questions/3630506/benefits-of-ebs-vs-instance-store-and-vice-versa/3630707#3630707">EBS支持。

如果是这样,你可以备份你的情况下,采取了EBS快照。可通过aws.amazon.com(手动地)进行,利用AWS命令行工具(其可以实现自动化和预定在cron或Windows任务计划根据需要),或通过与AWS的API。

If so, you can backup your instance by taking an EBS Snapshot. That can be done through aws.amazon.com (manually), using AWS Command Line Tools (which can be automated and scheduled in cron or Windows Task Scheduler as appropriate) or through the AWS API.

有关脚本备份的详细信息,请参阅此相关的问题:

For details on scripting the backup, see this related question:

<一个href="http://stackoverflow.com/questions/1320994/automating-amazon-ebs-snapshots-anyone-have-a-good-script-or-solution-for-this-o">Automating亚马逊EBS快照任何人有一个好的剧本或解决方案,这在Linux上

如果你有安装如独立的存储为你的数据库,请确保您备份了起来呢!

If you have separate storage mounted e.g. for your database, be sure you back that up too!

更新

要手动创建快照,

  • 浏览<一个href="https://console.aws.amazon.com/ec2/home?#s=Volumes">https://console.aws.amazon.com/ec2/home?#s=Volumes
  • 您要备份(卷附加到实例是在一个名为附件信息栏)卷上单击鼠标右键
  • 选择创建快照
  • Browse to https://console.aws.amazon.com/ec2/home?#s=Volumes
  • Right-click on the volume you want to backup (the instance the volume is attached to is in the column named 'Attachment Information')
  • Select Create Snapshot

要创建实例的AMI图像和劳克另一些情况下,就像它(的情况下,提供更多的资源,或者负载均衡,等等。):

To create an AMI image from the instance and lauch other instances just like it (in instances with more resources or to balance load, etc.):

  • 浏览<一个href="https://console.aws.amazon.com/ec2/home?#s=Instances">https://console.aws.amazon.com/ec2/home?#s=Instances
  • 在实例中右键单击您要创建的AMI从
  • 选择创建映像(EBS AMI)
  • Browse to https://console.aws.amazon.com/ec2/home?#s=Instances
  • Right-click on the instance you want to create the AMI from
  • Select Create Image (EBS AMI)

这篇关于如何让每天备份我的EC2实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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