Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making files public when doing an rsync with gsutil

When doing the usual gsutil -m rsync -r . gs://bucket/ I would like the files to be public by default instead of having to do a gsutil -m acl set -R -a public-read gs://bucket afterwards.

Is it possible ?

like image 341
damio Avatar asked Jan 31 '26 21:01

damio


1 Answers

gsutil now have a -a flag to set a canned ACL on copied files:

gsutil -m rsync -a public-read -r . gs://bucket/

like image 199
Renaud Chaput Avatar answered Feb 02 '26 17:02

Renaud Chaput