如何利用AWS的备份EC2实例/临时存储? [英] how to take backup of aws ec2 instance/ephemeral storage?

查看:1012
本文介绍了如何利用AWS的备份EC2实例/临时存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的数据库保存在/ mnt目录,临时存储自带的EC2实例。采取使用EC-2 API工具,我们需要的卷ID,但在AWS控制台我能找到的只有8GB根存储卷ID的备份。 我应该怎么做,如果想要临时存储备份?有没有替代备份实例存储?

I have my db kept at /mnt, ephemeral storage that comes with ec2 instance. to take the backup using ec-2 api tool we need volume id but at aws console i can find the volume id of only 8gb root storage. what should i do if want the backup of ephemeral storage? is there any alternative for backing up instance storage?

推荐答案

首先,你应该永远存储在临时存储中的亚马逊EC2 的,除非你确切地知道自己在做什么,并ppared $ P $总是有时间点的备份等等 - 你的问题的似乎来表示你的也许的被误认为有关的临时存储之间的 Amazon EC2实例存储空间亚马逊EBS 以及关于数据安全的显著影响和备份要求:

First and foremost, you should never store anything of lasting value on ephemeral storage in Amazon EC2, except if you know exactly what you are doing and are prepared to always have point in time backups etc. - your question seems to indicate that you might be mistaken about the concept of ephemeral storage, the respective difference between Amazon EC2 Instance Storage an Amazon EBS and the significant implications regarding data safety and backup requirements:

短暂存储将在停止丢失/启动循环一般可自行消失,所以你绝对不希望把持久的价值存在,即什么< STRONG>只是把临时数据那里你能承受的损失或重建轻松,如在计算过程中使用的一个交换文件或严格的临时数据。当然,你可以存储大量的索引那里的例子,但必须ppared重建这些$ P $后存储已被清除无论出于何种原因(例如重启,硬件故障,...)。

Ephemeral storage will be lost on stop/start cycles and can generally go away, so you definitely don't want to put anything of lasting value there, i.e. only put temporary data there you can afford to lose or rebuild easily, like a swap file or strictly temporary data in use during computations. Of course you might store huge indexes there for example, but must be prepared to rebuild these after the storage has been cleared for whatever reason (instance reboot, hardware failure, ...).

  • 在这的原因是多方面的埃里克·哈蒙德很好地总结了你应该使用EBS引导实例在Amazon EC2上一个),其中概述了历史和两个存储概念之间的差异,并评估了临时存储剩下的几个可能的好处(主要是丰富和自由)。
  • That's one of the many reasons Eric Hammond excellently summarized in You Should Use EBS Boot Instances on Amazon EC2), which outlines the history of and differences between the two storage concepts and assesses the few remaining possible benefits of ephemeral storage (mainly being plentiful and free).

这些解释应该阐明你为什么不能备份的临时存储卷与只适用于EBS卷(即EBS快照)的机制。因此,可以通过备份您选择的常规操作系统级别的备份工具前,与口是心非的是一个受欢迎的选择可选便利的亚马逊S3 例如,为解决在回答的最容易使用的备份软件进行实时Linux服务器

These explanations should clarify why you are unable to backup the ephemeral storage volumes with a mechanism that solely applies to EBS volumes (i.e. EBS snapshots). Accordingly, you can backup the former via regular operating system level backup tool of your choice, with Duplicity being a popular choice optionally facilitating Amazon S3 for example, as addressed in my answer to Easiest to use backup software for live linux server.

这篇关于如何利用AWS的备份EC2实例/临时存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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