sotangochips
sotangochips

Reputation: 2788

How do I move data from local appengine datastore to remote datastore?

I can see how to download the remote datastore to local, and how to upload a CSV to the remote app engine server as outlined here:

Uploading and Downloading Data

But is there a way to export my local data to a CSV that is ready for the remote upload script? Of course I could write a custom exporter, but is there no way to automate this process?

Upvotes: 2

Views: 1134

Answers (2)

sotangochips
sotangochips

Reputation: 2788

The answer is to use the bulkloader.py pointing at your local box:

bulkloader.py --dump --url=http://localhost:8080/remote_api --filename=test.csv --kind=KindHere --app_id=app-id-here

Then you can use the bulkloader.py --restore command to send it to production

Upvotes: 5

artdanil
artdanil

Reputation: 5082

Look at the Python Standard Library's csv module.

Upvotes: 0

Related Questions