导出PB2数据有好的方法吗?除了用GAE官方的appcfg.py脚本。

2012-02-02 10:49:08 +08:00
 daqing
4859 次点击
所在节点    Project Babel
4 条回复
Livid
2012-02-09 17:39:39 +08:00
http://code.google.com/intl/zh-CN/appengine/docs/python/tools/uploadingdata.html

导出为 XML 的话,会更容易处理。

这方面我也还在研究中。
daqing
2012-02-09 17:45:12 +08:00
要是在网站后台,能够打包下载所有数据就好了。
daqing
2012-02-13 09:34:44 +08:00
@Livid 我在试图下载数据时,不管翻不翻墙,总是出现以下错误:

URLError: <urlopen error [Errno 54] Connection reset by peer>
[INFO ] Authentication Failed

搜索了一下,也没找到办法。我的下载命令是:

appcfg.py download_data --application='s~foobar' --url=http://foobar.appspot.com/remote_api --filename=data_backup_archive.xml
daqing
2012-02-13 10:12:45 +08:00
我在国外的VPS上面执行上面的命令,终于成功了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/26412

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX