Moving from s3 to google cloud storage and ACL

I am currently planning to migrate from s3 to google cloud storage (gcs). I decided to deploy a gce instance and use gsutil to rsync several million files. I would like to know if the permission will be preserved or not. for example, if the file is publicly read on amazon s3, what would be the acl on gcs. thank

+3


source to share


1 answer


If you are using the gsutil cp command, you can specify the canned ACL on the command line, for example:

gsutil cp -R -a public-read s3://your-s3-bucket gs://your-gs-bucket

      



The rsync command has no way of doing this. Alternatively, however, you can set the default object ACL in the destination container using the gsutil defacl command. Then you can use gsutil cp without specifying the canned ACL, or you can use gsutil rsync.

+2


source







All Articles