I am trying to automate backups to a remote GCP bucket. I am using the gsutil CLI and Crontab to schedule transfers of all files in a given directory. I would like to compress the files as they are being transferred, and was led to believe that the following command would work:
gsutil -m cp -r -z * [local_path] gs://[GCP Path]
This however is not looking to be the case and it seems that individual files are being copied, can someone provide me with the exact command followed by a direct link to GCP documentation where this noted?
Thanks!