1

可能重复:
如何使用 Google App 引擎批量加载程序备份我的所有数据?

我关注这篇文章:http ://code.google.com/intl/en/appengine/docs/python/tools/uploadingdata.html

并想从我的应用程序下载所有数据,

但是当我使用下一个代码时,它显示错误:

D:\zjm_demo\app>appcfg.py --dump --app_id=zjm1126 --url=http://zjm1126.appspot.c
om/remote_api --filename=a.csv
Usage: appcfg.py [options] <action>

appcfg.py: error: no such option: --dump

为什么 ?

谢谢

更新

我用这个:

appcfg.py download_data  --application=zjm1126 --url=http://zjm1126.appspot.com/remote_api --filename=a.csv
4

3 回答 3

1

该文档似乎不正确:

我发现我必须使用 download_data 而不是 --dump 和 --application 而不是 --app_id,例如:

appcfg.py download_data --application=app_id --url=http://etc --filename=file 

这是如何使用 Google App 引擎批量加载程序备份我的所有数据的副本?

于 2010-06-18T03:12:05.493 回答
0

我没有“为什么”的答案,但在我看来,您会想使用该download_data操作。

> appcfg help download_data
Usage: appcfg.py [options] download_data <directory>

Download entities from datastore.

The 'download_data' command downloads datastore entities and writes them to
file as CSV or developer defined format.

...

您可能需要阅读配置批量加载程序部分以获取更多信息。我从来不需要下载我的数据,所以我对此没有真正的经验。

于 2010-06-18T03:11:04.920 回答
0

使用 appcfg.py download_data "应用程序目录/--app_id" --config_file=etc.yaml --kind=etc --filename=etc.csv

于 2010-06-29T12:28:12.367 回答