Hi,

I'm trying to backup my app's data from datastore (Master/Slave Replication) to 
restore it on my local dev server in order to be able to fix some bugs 
locally.

I'm able to download datastore from my app using the following command :
appcfg.py download_data --application=XXX 
--url=http://XXX.appspot.com/_ah/remote_api --filename="d:\backup"
This generate a backup file which seem to be in SQLite3 format with all data 
inside. Perfect.

Now I'm trying to restore that backup to my local dev server. Unfortunately 
I can't find the proper way to do this.
I've tried two approaches:
1) using command : dev_appserver.py --datastore_path="d:\backup" 
"d:\XXX\src"
  which lead to the following error :
  ApplicationError: 3 Could not read data from d:\XXX\backup. Try running 
with the --clear_datastore flag. Cause:ValueError('insecure string pickle',)

2) using command : appcfg.py upload_data --application=XXX 
--url=http://localhost:8080/_ah/remote_api --filename="d:\XXX\backup"
  which lead to the following error :
  BadRequestError: app "dev~XXX" cannot access app "XXX"'s data

Can anybody help me to find me error or to point me to another approach ?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/j5_6oI-jUy8J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to