如何从Google App Engine高复制数据存储导出数据? [英] How can I export data from Google App Engine High Replication datastore?

查看:103
本文介绍了如何从Google App Engine高复制数据存储导出数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究如何使用Google App Engine开展一个项目,并希望确保我有办法导出所有数据,如果我决定离开GAE(或GAE关闭)。



我搜索的有关从GAE导出数据的所有内容都指向 https://developers.google.com/appengine/docs/python/tools/uploadingdata 。但是,该页面包含以下注释:


注意:本文档适用于使用主/从
数据存储的应用程序。如果您的应用使用High Replication数据存储,则可以从应用复制数据
,但Google目前不支持
支持此用例。如果您尝试从High Replication
数据存储中进行复制,则会在Admin
控制台中看到high_replication_warning错误,并且下载的数据可能不包含最近保存的
实体。


问题是最近主/从数据存储最近被弃用,以支持高复制数据存储。据我所知,主/从数据存储仍然支持一段时间,但我不习惯使用已正式废弃并正在出口的东西。所以这给我留下了高复制数据存储空间,似乎导出数据的唯一方式就是上面没有官方支持的方法(并且因此不能保证我可以获取数据)。



是否有任何其他(正式支持的)从High Replication数据存储导出数据的方式?如果这意味着我的数据可能永久锁定在那里,那么我觉得使用Google App Engine并不舒服。

配置一个名为 remote_api 的内置程序。 本文包含所有需要能够下载的信息和指南您今天和将来的所有数据。

I am looking into using Google App Engine for a project and would like make sure I have a way to export all my data if I ever decide to leave GAE (or GAE shuts down).

Everything I search about exporting data from GAE points to https://developers.google.com/appengine/docs/python/tools/uploadingdata. However, that page contains this note:

Note: This document applies to apps that use the master/slave datastore. If your app uses the High Replication datastore, it is possible to copy data from the app, but Google does not currently support this use case. If you attempt to copy from a High Replication datastore, you'll see a high_replication_warning error in the Admin Console, and the downloaded data might not include recently saved entities.

The problem is that recently the master/slave datastore was recently deprecated in favor of the High Replication datastore. I understand that the master/slave datastore is still supported for a little while, but I don't feel comfortable using something that has officially been deprecated and is on its way out. So that leaves me with the High Replication datastore and the only way it seems to export the data is the method above that is not officially supported (and thus does not provide me with a guarantee that I can get my data out).

Is there any other (officially supported) way of exporting data from the High Replication datastore? I don't feel comfortable using Google App Engine if it means my data could be locked in there forever.

解决方案

You need to configure a builtin called remote_api. This article has all the information and guide you need to be able to download all your data today and in the future.

这篇关于如何从Google App Engine高复制数据存储导出数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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