2010-06-18 19 views
1

Possible Duplicate:
How can I use the Google App engine bulkloader to back up all my data?appcfg.py:錯誤:沒有這樣的選擇:--dump在谷歌應用程序內發動機

我按照這篇文章: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 

回答

1

的文件似乎是不正確的:

我發現,我不得不代替自卸和--application使用download_data代替--app_id,例如:

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

這是How can I use the Google App engine bulkloader to back up all my data?

+0

喜撒克遜人,看更新。 – zjm1126 2010-06-18 03:25:41

+0

您是否按照http://code.google.com/intl/zh-CN/appengine/docs/python/tools/uploadingdata.html#Setting_Up_remote_api中所述設置了remote_api? – 2010-06-18 03:29:03

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. 

... 

您可能想要了解更多信息,請參閱Configuring the Bulk Loader部分。我從來沒有需要下載我的數據,所以我沒有真正的經驗。

0

使用appcfg.py download_data的副本 「應用程序目錄/ --app_id」 --config_file = etc.yaml --kind =等--filename = etc.csv

相關問題