Exporting data from Google Cloud Storage to Amazon S3

前端 未结 4 841
夕颜
夕颜 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:15

    I needed to transfer 2TB of data from Google Cloud Storage bucket to Amazon S3 bucket. For the task, I created the Google Compute Engine of V8CPU (30 GB).

    Allow Login using SSH on the Compute Engine. Once logedin create and empty .boto configuration file to add AWS credential information. Added AWS credentials by taking the reference from the mentioned link.

    Then run the command:

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

    The data transfer rate is ~1GB/s.

    Hope this help. (Do not forget to terminate the compute instance once the job is done)

    0 讨论(0)
  • 2020-11-27 05:19

    Using Rclone (https://rclone.org/).

    Rclone is a command line program to sync files and directories to and from

    Google Drive
    Amazon S3
    Openstack Swift / Rackspace cloud files / Memset Memstore
    Dropbox
    Google Cloud Storage
    Amazon Drive
    Microsoft OneDrive
    Hubic
    Backblaze B2
    Yandex Disk
    SFTP
    The local filesystem
    
    0 讨论(0)
  • 2020-11-27 05:24

    Go to any instance or cloud shell in GCP

    First of all configure your AWS credentials in your GCP

    aws configure

    if this is not recognising the install AWS CLI follow this guide https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html

    follow this URL for AWS configure https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

    Attaching my screenshot

    Then using gsutil

    gsutil -m rsync -rd gs://storagename s3://bucketname

    16GB data transferred in some minutes

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题