Need to download my all entities from appengine(appid.appspot.com) and upload to devserver(localhost:8080) for testing.
Referred lot of threads in stackoverflow and google community. But not able to load/download all entities.G开发者_Python百科ive me some link or idea,any one successfully loaded all entity to devserver in version 1.4.2?appcfg.py download_data --config_file=d:\bulkloader.yaml --filename=d:\backup\2.csv --url=d:\app\src
throws error
kind argument required for this operation
Want to do download/upload all entities,is it possible?
Note: tried this Google bulk loader docs
This is a script that I used to use for this purpose (I switched to using an Ant script). I haven't maintained it for a while, but it appears to still work:
https://gist.github.com/882011
If you have experience with Ant, this is what I switched to:
https://bitbucket.org/darktable/gae-python-ant-farm/src/fb0512f84192/build.xml
I download each model type into a separate file because having a bulk download of the entire datastore interrupted can suck.
This article covers everything pretty well.
Note: if you have blobstore items you cannot currently use bulkloader to transfer them.
With help of Nick Johnson,i figured it out,
Below the commands to download all entity from appengine and upload all entity to localhost.
appcfg.py download_data --application=wianga-movie
--url=http://appid.appspot.com/_ah/remote_api --filename=D:\back1.csv
appcfg.py upload_data --num_threads=1 --application=wianga-movie
--url=http://localhost:8080/_ah/remote_api --filename=D:\back1.csv D:\app\src
Note:
1)num_threads is need to upload to localhost because localhost cannot handle multiple threads.
2)if --url parameter is not given ,it will upload entities to yourappid.appsopt.com
3)Refer Google bulk loader docs,But uploading all entity to local host is missing in the portion :-(
精彩评论