Retain public access to files when using Google Cloud Storage Transfer Service

113 Views Asked by At

I use Google Cloud Storage Transfer Service to move files between Google cloud buckets. I've actually executed one transfer job. In the source bucket there were files with enabled public access. In the destination bucket the same files no longer had public access. Is it possible to use transfer service and retain public access?

1

There are 1 best solutions below

1
On BEST ANSWER

While there is no way to achieve this with the transfer service UI, you can use the gsutil rsync -p command to achieve this as mentioned in this documentation file.

I would recommend you to set up a script in a cron rather than a transfer service to copy your files if you need to schedule this, or use the cloud shell if you are only gonna run this once