Created
January 19, 2018 10:54
-
-
Save shigwata/11ce2ca455eb5e3e64c9bc275506621a to your computer and use it in GitHub Desktop.
datastoreのkindを別プロジェクトにコピーする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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