Wednesday, 17 February 2016

Move data between two Google App Engine applications

Use Google Cloud Storage as an intermediary mean to copy data  to both GAE instances

Create a bucket in your cloud.

Open the datastore_admin of GAE

Select an entity to backup  and push the button "Backup entities" (figure 1)

Figure 1


On the following screen, the data store admin will ask you for the bucket name (figure 2).

Confirm by pressing on "Backup entities"


Figure 2

You can follow the status of the back. Once completed check that the tree structure of the backup
shows up in your bucket.

Very important : make sure to share publicly all files within the backup, otherwise the other application will not be able to connect and import the data. You have to go individually on every resource and check it

On data store client go the backups section where your recent backup shows up, check it,
and push on the info button. A screen showing information on your backup will show up (figure 3).



Figure 3

Make sure you retrieve the handle to this backup (figure 4).


Figure 4

The handle looks something like:

/gs/buck_name/agxzfnNpeHFvcy1ocmRyQQsSHF9BRV9EYXRhc3RvcmVBZG1pbl9PcGVyYXRpb24YgtX1FQwLEhZfQUVfQmFja3VwX0luZm9ybWF0aW9uGAEM.backup_info

Logon now to the other GAE instance datastore admin where you intend to import your data.

In the backups sectoin, in the input next to "import "back-up information"  button, enter the handle retrieved previously and click on the button (figure 5).




Figure 5


The transfer of the data should take place.

No comments:

About Me

My Photo