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: Storj provider: fix server-side copy of files bigger than 5GB

Kaloyan Raev75257fc9cdca
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index eda36a259..3c62dd3c5 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -3470,6 +3470,10 @@ func setQuirks(opt *Options) {
opt.ChunkSize = 64 * fs.Mebi
}
useAlreadyExists = false // returns BucketAlreadyExists
+ // Storj doesn't support multi-part server side copy:
+ // https://github.com/storj/roadmap/issues/40
+ // So make cutoff very large which it does support
+ opt.CopyCutoff = math.MaxInt64
case "Synology":
useMultipartEtag = false
useAlreadyExists = false // untested