"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
box: make --box-commit-retries flag defaulting to 100 - Fixes #2054
Nick Craig-Wood751bfd456f45
diff --git a/backend/box/box.go b/backend/box/box.goindex 31f912e3b..337584b78 100644--- a/backend/box/box.go+++ b/backend/box/box.go@@ -88,13 +88,19 @@ func init() {Help: "Cutoff for switching to multipart upload.",Default: fs.SizeSuffix(defaultUploadCutoff),Advanced: true,+ }, {+ Name: "commit_retries",+ Help: "Max number of times to try committing a multipart file.",+ Default: 100,+ Advanced: true,}},})}// Options defines the configuration for this backendtype Options struct {- UploadCutoff fs.SizeSuffix `config:"upload_cutoff"`+ UploadCutoff fs.SizeSuffix `config:"upload_cutoff"`+ CommitRetries int `config:"commit_retries"`}// Fs represents a remote boxdiff --git a/backend/box/upload.go b/backend/box/upload.goindex 63892ec14..a3133cb76 100644--- a/backend/box/upload.go+++ b/backend/box/upload.go@@ -96,7 +96,9 @@ func (o *Object) commitUpload(SessionID string, parts []api.Part, modTime time.Trequest.Attributes.ContentCreatedAt = api.Time(modTime)var body []bytevar resp *http.Response- maxTries := fs.Config.LowLevelRetries+ // For discussion of this value see:+ // https://github.com/ncw/rclone/issues/2054+ maxTries := o.fs.opt.CommitRetriesconst defaultDelay = 10var tries intouter:diff --git a/docs/content/box.md b/docs/content/box.mdindex 7fc0a50f4..719158009 100644--- a/docs/content/box.md+++ b/docs/content/box.md@@ -227,6 +227,10 @@ system.Cutoff for switching to chunked upload - must be >= 50MB. The defaultis 50MB.+#### --box-commit-retries int ####++Max number of times to try committing a multipart file. (default 100)+### Limitations ###Note that Box is case insensitive so you can't have a file called