[英]How do I move data from local appengine datastore to remote datastore?
[英]Appengine downloading remote server data to local datastore fail?
我正在關注這個網站:
http://mbrochh.tumblr.com/post/6937702727/importing-google-app-engine-datastore-into-your-local
告訴我通過以下方式下載數據存儲區數據:
appcfg.py download_data --application=s~appname --url=http://appname.appspot.com/_ah/remote_api/ --filename=data.csv
已成功執行。 現在,我想通過以下方式將其上傳到本地數據存儲區:
appcfg.py upload_data --filename=data.csv --url=http://localhost:8080/_ah/remote_api/ your_app_folder
我得到:
google.appengine.api.datastore_errors.BadRequestError: app "dev~oyoroiapp" cannot access app "oyoroiapp"'s data
--default_parition
在最近的api更新中已刪除--default_parition
參數。 我能做什么?
cd
進入包含本地data.csv
文件的文件夾,然后:
appcfg.py upload_data --url=http://localhost:8080/_ah/remote_api/ --application=dev~appname --filename=data.csv --num_threads=5
我認為您缺少application=dev~appname
標志,並且可能在錯誤的目錄中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.