You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -406,12 +406,21 @@ The `--verbose` option will turn on verbose logging and is useful for debugging.
406
406
```sh
407
407
$ dbxcli put file.txt /destination/file.txt # upload a single file
408
408
$ dbxcli put -r ./project /backup/project # recursively upload a directory
409
-
$ dbxcli put -r -w 8 ./large-folder /backup/large # use 8 workers per large file
409
+
$ dbxcli put -w 1 -c 134217728 large.zip /backup/large.zip
410
410
$ dbxcli put --if-exists skip file.txt /dest.txt # skip if the file already exists
411
411
```
412
412
413
413
By default, `put` overwrites existing destination files. Use `--if-exists overwrite|skip|fail` to choose whether existing files are overwritten, skipped, or treated as an error.
414
414
415
+
For files larger than 32MiB, `put` uses Dropbox upload sessions. By default, it
416
+
uses 4 workers and 16MiB chunks. Each chunk is one upload-session request; chunk
417
+
size must be a multiple of 4MiB and no more than 128MiB. On unstable networks,
418
+
fewer workers and larger chunks may be more reliable:
419
+
420
+
```sh
421
+
$ dbxcli put -w 1 -c 134217728 large.zip /backup/large.zip
putCmd.Flags().IntP("workers", "w", 4, "Number of concurrent upload workers to use")
905
-
putCmd.Flags().Int64P("chunksize", "c", 1<<24, "Chunk size to use (should be multiple of 4MiB)")
919
+
putCmd.Flags().IntP("workers", "w", 4, "Number of concurrent upload workers for chunked large-file uploads")
920
+
putCmd.Flags().Int64P("chunksize", "c", 1<<24, "Chunk size in bytes for chunked large-file uploads; must be a multiple of 4MiB and no more than 128MiB")
0 commit comments