Skip to content

Instantly share code, notes, and snippets.

@shigwata
Created January 19, 2018 10:54
Show Gist options
  • Select an option

  • Save shigwata/11ce2ca455eb5e3e64c9bc275506621a to your computer and use it in GitHub Desktop.

Select an option

Save shigwata/11ce2ca455eb5e3e64c9bc275506621a to your computer and use it in GitHub Desktop.
datastoreのkindを別プロジェクトにコピーする
# https://cloud.google.com/datastore/docs/export-import-entities
$ gcloud beta datastore export --project=${SRC_PROJECT} --namespaces="(default)" gs://${SRC_BUCKET}
$ gsutil cp -r -m gs://${SRC_BUCKET} gs://${DEST_BUCKET}
$ gcloud beta datastore import --project=${DEST_PROJECT} gs://${DEST_BUCKET}/overall_export_metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment