Mohamed Khamis Mohamed Khamis - 1 year ago 142
Python Question

Downloading data from the datastore

I wanted to download the data on my online app's datastore, I followed the guide on, I added this to my


- remote_api: on

But when I updated using update src
and called this: download_data --application=myapp --url= --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/
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)
app = webapp2.WSGIApplication
, however still the authentication error persists.

I use a High Replication datastore, but according to the only drawback is that I might not get the latest data.

How can I download my data?

Answer Source

Try this:

- remote_api: on

And for url download_data --application=~myapp --url= --filename=first-test-backup

Atttention _ah in url:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download