An open API service indexing awesome lists of open source software.

https://github.com/chees/datastore2bigquery

Export Google Datastore to BigQuery
https://github.com/chees/datastore2bigquery

backup bigquery datastore gcloud gcp google-cloud-storage

Last synced: 3 months ago
JSON representation

Export Google Datastore to BigQuery

Awesome Lists containing this project

README

          

# Export Google Datastore to BigQuery

See this screen recording on YouTube for the demo:

[![YouTube video](https://img.youtube.com/vi/dGyQCE3bWkU/0.jpg)](https://www.youtube.com/watch?v=dGyQCE3bWkU "Google Cloud Datastore to BigQuery")

This script exports a Datastore kind to Cloud Storage, imports it into BigQuery and then deletes the Cloud Storage files.

Usage:

./datastore2bigquery.sh PROJECT KIND [BQDATASET]

Example:

./datastore2bigquery.sh code-cooking Food

This script requires the `bq` and `gsutil` gcloud components, so install those first if you haven't already:

gcloud components install bq gsutil