V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kojp
V2EX  ›  问与答

彻底崩溃了。。关于GAE的数据备份

  •  
  •   kojp · 2011-07-25 20:14:58 +08:00 · 5145 次点击
    这是一个创建于 4671 天前的主题,其中的信息可能已经有所发展或是发生改变。
    大致有且只有两个现成的工具
    GAEBAR 和 GAE_Datastore_Backup_Utility_1_0

    GAEBAR 只支持DJANGO的。。。配置复杂弄不来。^_^

    GAE_Datastore_Backup_Utility_1_0,这个的确是有图形界面,有个ENTITY不知道写什么,也找不到相关的使用文档。。。。全是转载这一段的中文或英文。。有意思吗。。TAT。。



    * WPF
    * C#
    * Python
    * XML
    * Google App Engine SDK

    Note: Currently this application is only for Windows Platforms. If there is enough interest I can port this application to other operating systems. If you would like to contribute this let me know.
    Need to knows

    See requirements Wiki for further information.

    * Windows only (currently)
    * Python based GAE apps only
    * Requires some steps for installation
    * Future versions of the GAE SDK may break version 1.0 since bulkloader.py from the SDK is in testing. Currently the commands used by this application are in the experimental stages as posted here: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data . When the SDK updates, I will try my best to release an update for this application since currently this application is relying on the experimental features.
    19 条回复    1970-01-01 08:00:00 +08:00
    kojp
        1
    kojp  
    OP
       2011-07-25 20:15:40 +08:00
    求。。GAE_Datastore_Backup_Utility_1_0 使用方法。

    或求。。。DJANGO GAE 的相关知识
    fcicq
        2
    fcicq  
       2011-07-26 12:30:16 +08:00
    谁告诉你就必须用你说的那两个工具了?
    appcfg.py:
    download_data: Download entities from datastore.
    ccdjh
        3
    ccdjh  
       2011-07-26 13:08:03 +08:00
    kojp
        4
    kojp  
    OP
       2011-07-26 15:23:17 +08:00
    @ ccdjh
    我表示。。我看不懂!!!!
    kojp
        5
    kojp  
    OP
       2011-07-26 15:24:12 +08:00
    @fcicq

    appcfg.py:
    download_data: Download entities from datastore.

    这个倒是可以试一下。。entities是不是换成 APP的ID就可以了?
    zsj950618
        6
    zsj950618  
       2011-07-26 16:17:42 +08:00
    GAE不很早就支持备份了
    kojp
        7
    kojp  
    OP
       2011-07-26 16:18:32 +08:00
    @fcicq
    谢谢。。果然能用。。但是。

    出错了~~~

    Downloading data records.
    [INFO ] Logging to bulkloader-log-20110726.161601
    [INFO ] Throttling transfers:
    [INFO ] Bandwidth: 250000 bytes/second
    [INFO ] HTTP connections: 8/second
    [INFO ] Entities inserted/fetched/modified: 20/second
    [INFO ] Batch Size: 10
    [INFO ] Opening database: bulkloader-progress-20110726.161601.sql3
    [INFO ] Opening database: bulkloader-results-20110726.161601.sql3
    [INFO ] Connecting to xyerjj.appspot.com
    Error 405: --- begin server output ---

    --- end server output ---

    求解!!!
    kojp
        8
    kojp  
    OP
       2011-07-26 16:19:30 +08:00
    @zsj950618

    的确是。。看了一下官方的英文文档,虽然没太看懂,但大概明白现在应该是支持了。。。。。
    中文的没更新呀!!!!
    kojp
        9
    kojp  
    OP
       2011-07-26 16:20:26 +08:00
    我的语句是这样的:

    appcfg.py download_data --application=xyerjj --url=http://xyerjj.appspot.com --filename=test.xml
    CoX
        10
    CoX  
       2011-07-26 17:40:26 +08:00
    @kojp 文档前面看了没?
    There are two ways to install remote_api: automatically using the builtins directive, or you manually using the url directive.
    你嘚配置了remote_api才行吧。
    kojp
        11
    kojp  
    OP
       2011-07-26 18:39:34 +08:00
    @CoX 配过了呀。。就是在yam文件里加一行代码。。我已经照做了。。。
    ccdjh
        12
    ccdjh  
       2011-07-26 19:10:24 +08:00
    kojp
        13
    kojp  
    OP
       2011-07-27 09:29:08 +08:00
    @ccdjh

    这个,正是我想问的。。。纠结了一会,也感觉应该还需要一个登录的过程。。可是。
    这个命令在哪???我只知道在appcfg.py update 的时候,才会提示我输入密码。
    kojp
        14
    kojp  
    OP
       2011-07-27 09:30:37 +08:00
    @ccdjh
    - url: /remote_api
    script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
    login: admin

    已经加上了。。还是不行!!!!
    kojp
        16
    kojp  
    OP
       2011-07-27 12:02:50 +08:00
    @keakon
    看到一个中文的!!!!。。太感动了。。谢谢。
    kojp
        17
    kojp  
    OP
       2011-07-28 11:49:53 +08:00
    @keakon

    求邮箱!!!我中文看了仍然是一头雾水哇~~~
    kojp
        18
    kojp  
    OP
       2011-07-28 11:50:45 +08:00
    @をつあおにまで GFW

    好油菜。。。哇哈哈。
    kojp
        19
    kojp  
    OP
       2011-07-28 17:11:39 +08:00
    敢再来个。。。高手指点一下不~~~~ 其实,目前,我只需要备份数据。我已经折腾好几天了。。文档也看了,视频也看了。。都以失败告终。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1005 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:27 · PVG 05:27 · LAX 14:27 · JFK 17:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.