将 AWS Dynamodb 备份到 S3 [英] Backup AWS Dynamodb to S3
问题描述
已在 亚马逊文档 http://aws.amazon.com/dynamodb/ 以及其他地方,您可以使用 Elastic Map Reduce 备份您的 dynamodb 表,
我对这如何工作有一个大致的了解,但我找不到任何关于此的指南或教程,
It has been suggested on Amazon docs http://aws.amazon.com/dynamodb/ among other places, that you can backup your dynamodb tables using Elastic Map Reduce,
I have a general understanding of how this could work but I couldn't find any guides or tutorials on this,
所以我的问题是如何自动执行 dynamodb 备份(使用 EMR)?
So my question is how can I automate dynamodb backups (using EMR)?
到目前为止,我认为我需要创建一个流"作业,其中包含从 dynamodb 读取数据的 map 函数和将数据写入 S3 的 reduce,我相信这些可以用 Python(或 java 或一些其他语言).
So far, I think I need to create a "streaming" job with a map function that reads the data from dynamodb and a reduce that writes it to S3 and I believe these could be written in Python (or java or a few other languages).
感谢任何评论、澄清、代码示例、更正.
Any comments, clarifications, code samples, corrections are appreciated.
推荐答案
随着 AWS Data Pipeline 的引入,以及用于 dynamodb 到 S3 备份的现成模板,最简单的方法是在 Data Pipeline 中安排备份
With introduction of AWS Data Pipeline, with a ready made template for dynamodb to S3 backup, the easiest way is to schedule a back up in the Data Pipeline [link],
如果您有特殊需求(数据转换、非常精细的粒度控制...),请考虑@greg 的答案
In case you have special needs (data transformation, very fine grain control ...) consider the answer by @greg
这篇关于将 AWS Dynamodb 备份到 S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!