JohnIdol
JohnIdol

Reputation: 50117

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

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 any sort of general purpose tool that allows you to download all your data from a specific instance of google-datastore and restore it to another one?

If so, please enlighten me, if not - someone should do it!

Upvotes: 13

Views: 7537

Answers (7)

Beginner
Beginner

Reputation: 1242

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

Upvotes: 2

JohnIdol
JohnIdol

Reputation: 50117

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

Upvotes: 1

dfrankow
dfrankow

Reputation: 21447

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

Upvotes: 1

Jason Rikard
Jason Rikard

Reputation: 1329

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/

Upvotes: 4

AutomatedTester
AutomatedTester

Reputation: 22428

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

Upvotes: 6

michael
michael

Reputation: 1160

You may have a look at the following site: http://aralbalkan.com/1837

It is about the backup and restore of the datastore.

Upvotes: 1

Related Questions