Download-file-by-id command¶
Downloads the given file, and stores it in the given local file.
If the tqdm
library is installed, progress bar is displayed
on stderr. Without it, simple text progress is printed.
Use --noProgress
to disable progress reporting (marginally improves performance in some cases).
Use –threads to manually adjust number of threads used in the operation. Otherwise, the number of threads will be automatically chosen.
Use –threads to manually adjust number of threads used in the operation. Otherwise, the number of threads will be automatically chosen.
To access SSE-C encrypted files,
please set --sourceServerSideEncryption=SSE-C
.
The default algorithm is set to AES256 which can by changed
with --sourceServerSideEncryptionAlgorithm
parameter.
Using SSE-C requires providing B2_SOURCE_SSE_C_KEY_B64
environment variable,
containing the base64 encoded encryption key.
Use –write-buffer-size to set the size (in bytes) of the buffer used to write files.
Use –skip-hash-verification to disable hash check on downloaded files.
Use –max-download-streams-per-file to set max num of streams for parallel downloader.
Requires capability:
readFiles
b2 download-file-by-id [-h] [--profile PROFILE] [--threads THREADS]
[--noProgress] [--sourceServerSideEncryption {SSE-C}]
[--sourceServerSideEncryptionAlgorithm {AES256}]
[--write-buffer-size BYTES] [--skip-hash-verification]
[--max-download-streams-per-file MAX_DOWNLOAD_STREAMS_PER_FILE]
fileId localFileName
Positional Arguments¶
- fileId
- localFileName
Named Arguments¶
- --profile
- --threads
- --noProgress
progress will not be reported
Default: False
- --sourceServerSideEncryption
Possible choices: SSE-C
- --sourceServerSideEncryptionAlgorithm
Possible choices: AES256
Default: “AES256”
- --write-buffer-size
- --skip-hash-verification
Default: False
- --max-download-streams-per-file