Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

s3: add support for --upload-header If-Match and If-None-Match

Sean Turner83b83f776838
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index c12a97619..c2c3392dd 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -4552,6 +4552,10 @@ func (o *Object) prepareUpload(ctx context.Context, src fs.ObjectInfo, options [
ui.req.ContentLanguage = aws.String(value)
case "content-type":
ui.req.ContentType = aws.String(value)
+ case "if-match":
+ ui.req.IfMatch = aws.String(value)
+ case "if-none-match":
+ ui.req.IfNoneMatch = aws.String(value)
case "x-amz-tagging":
ui.req.Tagging = aws.String(value)
default: