bulk-download¶
Description¶
Downloads all objects which match the given prefix to a given directory.
Required Parameters¶
-
-bn,--bucket-name[text]¶
The name of the bucket.
-
--dest-dir,--download-dir[text]¶
The directory where retrieved objects will be placed as files. This directory will be created if it does not exist.
Optional Parameters¶
-
--delimiter[text]¶
When this parameter is set, only objects whose names do not contain the delimiter character (after an optionally specified prefix) are returned. Scanned objects whose names contain the delimiter have part of their name up to the last occurrence of the delimiter (after the optional prefix) returned as a set of prefixes. Note: Only ‘/’ is a supported delimiter character at this time.
-
--dry-run¶
Prints the list of files to be downloaded.
-
--encryption-key-file[filename]¶
A file containing the base64-encoded string of the AES-256 encryption key associated with the object.
-
--exclude[text]¶
Only process files which do not match the specified pattern. Patterns are applied relative to the current directory. This option can be specified multiple times to match on multiple patterns. Supported pattern symbols are:
*: Matches everything
?: Matches any single character
[sequence]: Matches any character in sequence
[!sequence]: Matches any character not in sequence
-
--from-json[text]¶
Provide input to this command as a JSON document from a file using the file://path-to/file syntax.
The --generate-full-command-json-input option can be used to generate a sample json file to be used with this command option. The key names are pre-populated and match the command option names (converted to camelCase format, e.g. compartment-id –> compartmentId), while the values of the keys need to be populated by the user before using the sample file as an input to this command. For any command option that accepts multiple values, the value of the key can be a JSON array.
Options can still be provided on the command line. If an option exists in both the JSON document and the command line then the command line specified value will be used.
For