How to backup an AppEngine site?

前端 未结 4 1679
暗喜
暗喜 2021-02-01 08:14

So, you build a great shiny cloudy 2.0 website on top of AppEngine, with thousands upon thousands of images saved into the datastore and gigs of data at the blobstore. How do yo

4条回答
  •  旧巷少年郎
    2021-02-01 08:35

    I had some trouble with the suggested solution, so I had to fight with it a little. Here's what I came up with:
    1. Add remote_api to app.yaml as described above or simply as
    builtins:
    - remote_api: on

    2. Creating bulk loader as described above resulted in an authentication error for me like bug1125. The command below worked
    appcfg.py create_bulkloader_config --filename=/bulkloader.yaml /
    3. Change all the TODOs in bulkloader. In my case I changed all the connectors to "csv" and gave all foreign keys meaningful names.
    4. I used the following (bash) command to back up all the kinds
    for f in cat /bulkloader.yaml | grep "\- kind" | awk '{print $3}'
    do
        appcfg.py download_data / --filename=backup/$f.csv --config_file=/bulkloader.yaml --kind=$f
    done


    Note: Both commands are meant to run for a folder above the app folder

提交回复
热议问题