gsutil cp -z how can I copy and gzip multiple file types at once

google-cloud-storage, gsutil

Solution

Please remove the extra whitespace in the file extension list:

gsutil cp -z "js,css,html" file/name gs://bucket/name

I'm going to change the gsutil code to make it ignore the whitespace, so this is less confusing.

Problem

I have tried `gsutil cp -z "js, css, html" file/name gs://bucket/name` Only file type that compressed is js but other type remain uncompress. Can cp -z command upload and compress multiple file type? Any suggestion would be appreciate. Thanks in advance.

Original source