"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
gcs: Storage class object header support - fixes #3043
Laurens Janssen6ab6c8eefa08
diff --git a/backend/googlecloudstorage/googlecloudstorage.go b/backend/googlecloudstorage/googlecloudstorage.goindex a41bb0d09..afa2c7ce9 100644--- a/backend/googlecloudstorage/googlecloudstorage.go+++ b/backend/googlecloudstorage/googlecloudstorage.go@@ -1091,6 +1091,8 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, opobject.ContentLanguage = valuecase "content-type":object.ContentType = value+ case "x-goog-storage-class":+ object.StorageClass = valuedefault:const googMetaPrefix = "x-goog-meta-"if strings.HasPrefix(lowerKey, googMetaPrefix) {diff --git a/docs/content/googlecloudstorage.md b/docs/content/googlecloudstorage.mdindex 449036199..9b19f689b 100644--- a/docs/content/googlecloudstorage.md+++ b/docs/content/googlecloudstorage.md@@ -232,6 +232,7 @@ flag. Google Cloud Storage supports the headers as described in the- Content-Encoding- Content-Language- Content-Type+- X-Goog-Storage-Class- X-Goog-Meta-Eg `--header-upload "Content-Type text/potato"`