Skip to content

Commit

Permalink
Docs change commands dfget example (#143)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao authored Aug 29, 2024
1 parent 63caa14 commit 4b3da75
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions docs/reference/commands/client/dfget.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,20 @@ dfget s3://<bucket/<path>/ -O /tmp/path/ --storage-access-key-id=<access_key_id>

```shell
# Download a file.
dfget gs://<bucket>/<path> -O /tmp/file.txt --storage-credential-path=<credential_path> --storage-endpoint=<endpoint>
dfget gs://<bucket>/<path> -O /tmp/file.txt --storage-credential-path=<credential_path>

# Download a directory.
dfget gs://<bucket>/<path>/ -O /tmp/path/ --storage-credential-path=<credential_path> --storage-endpoint=<endpoint>
dfget gs://<bucket>/<path>/ -O /tmp/path/ --storage-credential-path=<credential_path>
```

### Download with ABS protocol {#downlad-with-abs}

```shell
# Download a file.
dfget abs://<container>/<path> -O /tmp/file.txt --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key> --storage-endpoint=<endpoint>
dfget abs://<container>/<path> -O /tmp/file.txt --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key>

# Download a directory.
dfget abs://<container>/<path>/ -O /tmp/path/ --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key> --storage-endpoint=<endpoint>
dfget abs://<container>/<path>/ -O /tmp/path/ --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key>
```

### Download with OSS protocol {#downlad-with-oss}
Expand Down Expand Up @@ -211,11 +211,11 @@ dfget cos://<bucket>/<path> -O /tmp/file.txt --storage-access-key-id=<access_key
dfget cos://<bucket>/<path>/ -O /tmp/path/ --storage-access-key-id=<access_key_id> --storage-access-key-secret=<access_key_secret> --storage-endpoint=<endpoint>
```

<!-- markdownlint-restore -->

## Log {#log}

```text
1. set option --verbose if you want to print logs to Terminal
2. log path: /var/log/dragonfly/dfget/
```

<!-- markdownlint-restore -->
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ dfget https://<host>:<port>/<path> -O /tmp/file.txt

<!-- markdownlint-disable -->

### 使用 S3 协议下载
### Amazon Simple Storage Service(S3) 下载

```shell
# 下载文件
Expand All @@ -157,27 +157,27 @@ dfget s3://<bucket>/<path> -O /tmp/file.txt --storage-access-key-id=<access_key_
dfget s3://<bucket/<path>/ -O /tmp/path/ --storage-access-key-id=<access_key_id> --storage-access-key-secret=<access_key_secret>
```

### 使用 GCS 协议下载
### Google Cloud Storage Service(GCS) 下载

```shell
# 下载文件
dfget gs://<bucket>/<path> -O /tmp/file.txt --storage-credential-path=<credential_path> --storage-endpoint=<endpoint>
dfget gs://<bucket>/<path> -O /tmp/file.txt --storage-credential-path=<credential_path>

# 下载目录
dfget gs://<bucket>/<path>/ -O /tmp/path/ --storage-credential-path=<credential_path> --storage-endpoint=<endpoint>
dfget gs://<bucket>/<path>/ -O /tmp/path/ --storage-credential-path=<credential_path>
```

### 使用 ABS 协议下载
### Azure Blob Storage Service(ABS) 下载

```shell
# 下载文件
dfget abs://<container>/<path> -O /tmp/file.txt --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key> --storage-endpoint=<endpoint>
dfget abs://<container>/<path> -O /tmp/file.txt --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key>

# 下载目录
dfget abs://<container>/<path>/ -O /tmp/path/ --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key> --storage-endpoint=<endpoint>
dfget abs://<container>/<path>/ -O /tmp/path/ --storage-access-key-id=<account_name> --storage-access-key-secret=<account_key>
```

### 使用 OSS 协议下载
### Aliyun Object Storage Service(OSS) 下载

```shell
# 下载文件
Expand All @@ -187,7 +187,7 @@ dfget oss://<bucket>/<path> -O /tmp/file.txt --storage-access-key-id=<access_key
dfget oss://<bucket>/<path>/ -O /tmp/path/ --storage-access-key-id=<access_key_id> --storage-access-key-secret=<access_key_secret> --storage-endpoint=<endpoint>
```

### 使用 OBS 协议下载
### Huawei Cloud Object Storage Service(OBS) 下载

```shell
# 下载文件
Expand All @@ -197,7 +197,7 @@ dfget obs://<bucket>/<path> -O /tmp/file.txt --storage-access-key-id=<access_key
dfget obs://<bucket>/<path>/ -O /tmp/path/ --storage-access-key-id=<access_key_id> --storage-access-key-secret=<access_key_secret> --storage-endpoint=<endpoint>
```

### 使用 COS 协议下载
### Tencent Cloud Object Storage Service(COS) 下载

> 注意: endpoint 不需要添加 `BucketName-APPID`,--storage-endpoint=cos.region.myqcloud.com 即可。
Expand Down

0 comments on commit 4b3da75

Please sign in to comment.