forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
7.4 KiB
7.4 KiB
Archiving Log Files
Function
You can use this command to archive log files to a local PC or to a specified bucket.
Command Line Structure
- Windows
- Archiving to a local PC
obsutil archive [file_or_folder_url] [-config=xxx]
- Archiving to a specified bucket
obsutil archive obs://bucket[/key] [-config=xxx]
- Archiving to a local PC
- macOS or Linux
- Archiving to a local PC
obsutil archive [file_or_folder_url] [-config=xxx]
- Archiving to a specified bucket
obsutil archive obs://bucket[/key] [-config=xxx]
- Archiving to a local PC
Examples
- In Windows, run obsutil archive to archive log files to the same directory where the tool is executed.
obsutil archive [----------------------------------------------------------] 100.00% 15/15 35ms Succeed to archive log files to [D:\obsutil\obsutil_log.zip]
Parameter Description
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. |
Parent topic: Auxiliary Commands