... | ... | @@ -17,13 +17,13 @@ Notes: |
|
|
|
|
|
The basic recursive operation is
|
|
|
|
|
|
gsutil -m cp -Rzv my-folder gs://our-bucket/
|
|
|
gsutil -m cp -vrz js latest gs://cdn.mathjax.org/mathjax/
|
|
|
|
|
|
**Note: not all metadata is preserved by default**, especially when updating a bucket from local files . The previous sections take care of public access, caching, CORS; see below for mime-types.
|
|
|
**Note: not all metadata is preserved by default**, especially when updating a bucket from local files. The previous sections take care of public access, caching, CORS; see below for mime-types.
|
|
|
|
|
|
This also works within GCS, i.e., bucket to bucket. If you copy within GCS from bucket to bucket, you can use the `-p` option to preserve metadata (*note*: this incurs higher costs).
|
|
|
|
|
|
gsutil -m cp -Rp gs://bucket1/file1 gs://bucket2/
|
|
|
gsutil -m cp -rp gs://bucket1/file1 gs://bucket2/
|
|
|
|
|
|
(You'll do need to set the CORS once for each bucket though; see the One-time-task section.)
|
|
|
|
... | ... | |