Transfer From S3 to Google Storage - Incorrect Key

后端 未结 5 1144
南方客
南方客 2021-01-18 18:17

I\'ve been trying for past couple of hours to setup a transfer from S3 to my google storage bucket.

The error that i keep getting, when creating the transfer is: \"I

5条回答
  •  情书的邮戳
    2021-01-18 19:06

    May Be this can help:

    First, specify the S3_host in you boto config file, i.e., the endpoint-url containing region (No need to specify s3-host if the region is us-east-1, which is default). eg,

    vi ~/.boto

    s3_host = s3-us-west-1.amazonaws.com

    That is it, Now you can proceed with any one of these commands:

    gsutil -m cp -r s3://bucket-name/folder-name gs://Bucket/

    gsutil -m cp -r s3://bucket-name/folder-name/specific-file-name gs://Bucket/

    gsutil -m cp -r s3://bucket-name/folder-name/ gs://Bucket/*

    gsutil -m cp -r s3://bucket-name/folder-name/file-name-Prefix gs://Bucket/**

    You can also try rsync.

    https://cloud.google.com/storage/docs/gsutil/commands/rsync

提交回复
热议问题