Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在计划从 s3 迁移到谷歌云存储(gcs)。我决定启动一个 gce 实例并使用 gsutil 来同步数百万个文件。我想知道权限是否会被保留。例如,如果一个文件在 amazon s3 上公开读取,那么 gcs 上的 acl 将是什么。谢谢
如果您使用 gsutil cp 命令,您可以在命令行上指定预设 ACL,如下所示:
gsutil cp -R -a public-read s3://your-s3-bucket gs://your-gs-bucket
rsync 命令没有办法做到这一点。但是,另一个选项是您可以使用 gsutil defacl 命令在目标存储桶上设置默认对象 ACL。然后您可以使用 gsutil cp 而不指定预设 ACL,或者您可以使用 gsutil rsync。