[英]How to copy or transfer one bigquery dataset to another bigquery from a different gcp organization
I have some datasets in my own bigquery account (organization A) that needs to be transferred to another bigquery account in organization B. How to do it?我自己的 bigquery 帐户(组织 A)中有一些数据集需要转移到组织 B 中的另一个 bigquery 帐户。怎么做?
I am aware the data transfer service and RESTapi but that seem to be transfer data across project and region level within the organization.我知道数据传输服务和 RESTapi,但这似乎是在组织内跨项目和区域级别传输数据。
Thanks!谢谢!
You can use BigQuery Copy Datasets feature (beta feature at the moment) to copy datasets across projects/organization and across regions (not all regions supported).您可以使用 BigQuery Copy Datasets功能(目前为 beta 功能)跨项目/组织和跨区域(并非所有区域都支持)复制数据集。 Cross organization copy works as long as you don't have VPC service controls set.
只要您没有设置 VPC 服务控制,跨组织复制就可以工作。 You can use COPY DATASET or TRANSFERS on BQ Web UI or use CLI.
您可以在 BQ Web UI 上使用COPY DATASET或TRANSFERS或使用 CLI。 Using Transfers allows running the copy on a recurring schedule.
使用传输允许定期运行副本。
Usage: bq mk --transfer_config --project_id=[PROJECT_ID] --data_source=[DATA_SOURCE] --target_dataset=[DATASET] --display_name=[NAME] --params='[PARAMETERS]'
用法:
bq mk --transfer_config --project_id=[PROJECT_ID] --data_source=[DATA_SOURCE] --target_dataset=[DATASET] --display_name=[NAME] --params='[PARAMETERS]'
Use —params
for the specifying source dataset and other options.使用
—params
指定源数据集和其他选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.