Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Google Cloud Datastore and import to BigQuery programmatically

I'm looking for a method to export my Cloud Datastore and import it into BigQuery daily. The manual way is described at google page. I do not find a clean way to automate it.

like image 689
David Cesar Santos Avatar asked Jan 09 '23 09:01

David Cesar Santos


1 Answers

There isn't a simple way to do this, but you can separate out the two parts: creating appengine backups and loading them into bigquery.

You can use scheduled backups to create datastore backups periodically (https://cloud.google.com/appengine/articles/scheduled_backups).

You can then use Apps Script to automate the BigQuery portion (https://developers.google.com/apps-script/advanced/bigquery#load_csv_data) or use an AppEngine cron to do the same thing.

like image 122
Jordan Tigani Avatar answered Jan 10 '23 22:01

Jordan Tigani