I wanted to download the data on my online app's datastore, I followed the guide on code.google, I added this to my app.yaml
file
builtins:
- remote_api: on
But when I updated using appcfg.py update src
and called this:
appcfg.py download_data --application=myapp --url=http://myapp.appspot.com/remote_api_path --filename=first-test-backup`
I got an Authentication error, pretty much the same case mentioned here, so I tried putting this:
- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin
before any catch-all handlers, but then got this error: threadsafe cannot be enabled with CGI handler
when I tried to update, so according to this discussion, I replaced it by:
- url: /remote_api
script: google.appengine.ext.remote_api.handler.application
login: admin
Which gave me again the authentication error, I also tried adding ('/remote_api', google.appengine.ext.remote_api.handler)
to app = webapp2.WSGIApplication
, however still the authentication error persists.
I use a High Replication datastore, but according to code.google the only drawback is that I might not get the latest data.
How can I download my data?
Try this:
builtins:
- remote_api: on
And for url
appcfg.py download_data --application=~myapp --url=http://myapp.appspot.com/_ah/remote_api --filename=first-test-backup
Atttention _ah
in url: http://myapp.appspot.com/_ah/remote_api