Exporting data from Google Cloud Storage to Amazon S3

前端 未结 4 861
夕颜
夕颜 2020-11-27 04:37

I would like to transfer data from a table in BigQuery, into another one in Redshift. My planned data flow is as follows:

BigQuery -> Google Cloud Storage -> Amazon

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 05:25

    You can use gsutil to copy data from a Google Cloud Storage bucket to an Amazon bucket, using a command such as:

    gsutil -m rsync -rd gs://your-gcs-bucket s3://your-s3-bucket
    

    Note that the -d option above will cause gsutil rsync to delete objects from your S3 bucket that aren't present in your GCS bucket (in addition to adding new objects). You can leave off that option if you just want to add new objects from your GCS to your S3 bucket.

提交回复
热议问题