[英]How to Transfer data from Google cloud storage to S3 without any manual activity?
I want to transfer data from my cloud storage bucket to S3.我想将数据从我的云存储桶传输到 S3。 I did a lot of research.
我做了很多研究。 I found an interesting article in which this can be done using gsutil command.
我发现了一篇有趣的文章,其中可以使用 gsutil 命令完成此操作。 Again it requires a manual activity.
同样,它需要手动操作。 Is there any way to do this without any manual activity or like any possibility to run this gsutil command through Java API?
有没有办法在没有任何手动活动的情况下执行此操作,或者有可能通过 Java API 运行此 gsutil 命令?
I have created a VM instance on my Google cloud project.I have configured the boto file which has my AWS credentials.Using gsutil command I was able to copy my data from cloud storage to s3.I want to automate this step我在我的 Google 云项目上创建了一个 VM 实例。我已经配置了具有我的 AWS 凭证的 boto 文件。使用 gsutil 命令我能够将我的数据从云存储复制到 s3。我想自动执行此步骤
gsutil
can work with both Google Storage and S3. gsutil
可以与Google Storage和S3一起使用。
gsutil rsync -d -r gs://my-gs-bucket s3://my-s3-bucket
You just need to configure it with both - Google and your AWS S3 credentials. 您只需要使用Google和您的AWS S3凭证进行配置。
gsutil
would use credentials from ~/.boto
file. gsutil
将使用~/.boto
文件中的凭据。
There are multiple ways to automate shell command execution. 有多种方法可以自动执行Shell命令。 From Java's Runtime.exec() to Google Cloud Scheduler (your cloud's cron)
从Java的Runtime.exec()到Google Cloud Scheduler (您的云的cron)
Fully automated and easy to use way would be Google Storage Transfer . 全自动和易于使用的方式将是Google Storage Transfer 。 It would let you select the source and target buckets in either S3 or GCS and set shedule such as "run daily at 1am"
它可以让您在S3或GCS中选择来源和目标存储段,并设置诸如“每天凌晨1点运行”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.