... | ... | @@ -18,7 +18,9 @@ Notes: |
|
|
|
|
|
This also works within GCS, i.e., bucket to bucket.
|
|
|
|
|
|
**Note that metadata isn't preserved by default** (public access, caching, custom headers etc); use `-p` option to preserve them (*warning*: this incurs higher costs).
|
|
|
**Note that metadata isn't preserved by default** (public access, caching, custom headers etc), especially when updating a bucket from local files (**TODO** there must be some way to specicy metadata?).
|
|
|
|
|
|
If you copy within GCS from bucket to bucket, you can use the `-p` option to preserve metadata (*warning*: this incurs higher costs).
|
|
|
|
|
|
`gsutil -m cp -Rp gs://bucket1/file1 gs://bucket2/`
|
|
|
|
... | ... | @@ -34,6 +36,7 @@ This has to be done whenever files are uploaded (**TODO**: automate!) |
|
|
|
|
|
gsutil -m acl set -R -a public-read gs://our-bucket/path/to/file_or_wildcard
|
|
|
|
|
|
See also [Caching](#caching) below
|
|
|
|
|
|
### set CORS
|
|
|
|
... | ... | |