Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 428
sthapaun Avatar asked May 30 '14 09:05

sthapaun


1 Answers

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.

like image 52
Mike Schwartz Avatar answered Oct 20 '22 13:10

Mike Schwartz