title: How can I rsync and set some files as gzipped, using Google Cloud Storage?
body: <p>We are using Google Cloud Storage and the <code>gsutil</code> command. We'd like to rsync a large directory with many text files, and we'd like <em>some</em> of those files to be compressed and have their Content-Encoding set to gzip. It looks like we can only set Content-Encoding (using <code>-h</code>) for <em>all</em> files when using <code>gsutil rsync</code>, which is a bummer. Some of our files are images, which we do not want compressed.</p>
  
  <p>Alternatively, we'd like to run an rsync in <em>only delete from the destination what is no longer on the source</em> mode. We don't want to also upload. We just want to delete from GCS what is no longer in our local source directory. However, I didn't find that option.</p>