是否可以从 appcfg.py 下载 GAE 数据存储?
Is it possible to download GAE datastore from appcfg.py?
我正在尝试从项目下载数据存储记录:
appcfg.py --application=id --url=http://id.appspot.com/_ah/remote_api download_data foobar --filename=foobar.bak
它以如下消息完成:
[INFO ] Have 1 entities, 0 previously transferred
[INFO ] 1 entities (3715 bytes) transferred in 3.8 seconds
但是当我检查生成的 sqlite3 时,其中没有任何类似于数据存储实体中的数据。我错过了什么?
我知道备份到云存储的方法,但这对我来说似乎太麻烦了。也许有人写了一些简单的 JSON exporter?
我不确定为什么 'download_data' 之后有 'foobar'。
这应该可以下载所有类型:
appcfg.py --application=id --url=http://id.appspot.com/_ah/remote_api download_data --filename=foobar.bak
不要忘记在本地使用之前必须将其上传到您的开发服务器:
appcfg.py upload_data --url http://localhost:8080/remote_api --file=foobar.bak --application=id
默认情况下,您将获得一切。如果你想限制它到一个特定的命名空间或种类,你可以添加:
--namespace="your_namespace"
或
--kind="kind"
我正在尝试从项目下载数据存储记录:
appcfg.py --application=id --url=http://id.appspot.com/_ah/remote_api download_data foobar --filename=foobar.bak
它以如下消息完成:
[INFO ] Have 1 entities, 0 previously transferred
[INFO ] 1 entities (3715 bytes) transferred in 3.8 seconds
但是当我检查生成的 sqlite3 时,其中没有任何类似于数据存储实体中的数据。我错过了什么?
我知道备份到云存储的方法,但这对我来说似乎太麻烦了。也许有人写了一些简单的 JSON exporter?
我不确定为什么 'download_data' 之后有 'foobar'。
这应该可以下载所有类型:
appcfg.py --application=id --url=http://id.appspot.com/_ah/remote_api download_data --filename=foobar.bak
不要忘记在本地使用之前必须将其上传到您的开发服务器:
appcfg.py upload_data --url http://localhost:8080/remote_api --file=foobar.bak --application=id
默认情况下,您将获得一切。如果你想限制它到一个特定的命名空间或种类,你可以添加:
--namespace="your_namespace"
或
--kind="kind"