Google datastore backup to local dev_appserver

2019-09-02 04:12发布

问题:

I'm trying to follow those instructions: https://gist.github.com/jehna/3b258f5287fcc181aacf

I've downloaded my backup, made the script go to the path but it seems like the code won't get into the loop "for record in reader:" on windows. I read about it and from my impression it has to do with to format of the file (leveldb) which is not supported in windows that good. Do you have any insights/solutions about that?

Thanks

回答1:

This code work on windows when chaging file openning permissions from 'r' to 'rb' in windows