You can use this command to archive log files to a local PC or to a specified bucket.
obsutil archive [file_or_folder_url] [-config=xxx]
obsutil archive obs://bucket[/key] [-config=xxx]
obsutil archive [file_or_folder_url] [-config=xxx]
obsutil archive obs://bucket[/key] [-config=xxx]
obsutil archive [----------------------------------------------------------] 100.00% 15/15 35ms Succeed to archive log files to [D:\obsutil\obsutil_log.zip]
Parameter |
Optional or Mandatory |
Description |
|---|---|---|
file_or_folder_url |
Optional |
The path to which log files are archived. The rules are as follows:
NOTE:
All archive files are .zip files. |
bucket |
Mandatory for archiving log files to a specified bucket |
The bucket name |
key |
Optional for archiving log files to a specified bucket |
The object name or object name prefix when archiving log files to a specified bucket The rules are as follows:
|
config |
Optional (additional parameter) |
The user-defined configuration file for executing a command. For details about parameters that can be configured, see Configuration Parameters. |