Is there any tool to backup/restore Google Datastore entities?

前端 未结 7 1149
名媛妹妹
名媛妹妹 2021-02-07 20:04

I\'ve playing around with Google App Engine and Google Datastore for a while now and I am facing the need to take regular backups of my stuff up on the cloud.

Is there a

相关标签:
7条回答
  • 2021-02-07 20:29

    There is an opensource application available that I developed called "GAE datastore backup utility." It allows you to backup and restore your GAE entities through a GUI. It keeps track of your applications and your application's entities. It's currently only for Windows and Python based GAE apps but it sounds like something you are looking for. I see that you are looking for a solution for Java based apps. I will look into supporting this language in the next release.

    http://code.google.com/p/gae-datastore-backup-utility/

    0 讨论(0)
  • 2021-02-07 20:34

    http://code.google.com/appengine/articles/gae_backup_and_restore.html

    0 讨论(0)
  • 2021-02-07 20:37

    You can use the BulkLoader that is described in the Google Appengine Docs

    0 讨论(0)
  • 2021-02-07 20:43

    I describe bulkloader.py no-config dump/restore in What's the best way to back up data on Google App Engine?

    0 讨论(0)
  • 2021-02-07 20:44

    Follow this tutorial for Exporting and Importing Entities: https://cloud.google.com/datastore/docs/export-import-entities

    Windows:

    set BUCKET=YOUR_BUCKET_NAME[/NAMESPACE_PATH]
    gcloud datastore export --namespaces="(default)" gs://%BUCKET%
    gcloud datastore import gs://%BUCKET%/[PATH]/[FILE].overall_export_metadata
    

    Linux:

    BUCKET="YOUR_BUCKET_NAME[/NAMESPACE_PATH]"
    gcloud datastore export --namespaces="(default)" gs://${BUCKET}
    gcloud datastore import gs://${BUCKET}/[PATH]/[FILE].overall_export_metadata
    
    0 讨论(0)
  • 2021-02-07 20:53

    After years, this came out as a feature of the Datastore Administration in the app-engine dashboard, still experimental but still good news!

    0 讨论(0)
提交回复
热议问题