Skip to content

Commit ff69c0c

Browse files
authored
add aliyun oss example (#8359)
1 parent b80b922 commit ff69c0c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

br/backup-and-restore-storages.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,43 @@ If you have specified URL parameters and command-line parameters at the same tim
156156
| `--s3.acl` | The canned ACL of the upload object. For example, `private` and `authenticated-read`. |
157157
| `--s3.provider` | The type of the S3-compatible service. The supported types are `aws`, `alibaba`, `ceph`, `netease` and `other`. |
158158
159+
To export data to non-AWS S3 cloud storage, specify the cloud provider and whether to use `virtual-hosted style`. In the following examples, data is exported to the Alibaba Cloud OSS storage:
160+
161+
* Export data to Alibaba Cloud OSS using Dumpling:
162+
163+
{{< copyable "shell-regular" >}}
164+
165+
```bash
166+
./dumpling -h 127.0.0.1 -P 3306 -B mydb -F 256MiB \
167+
-o "s3://my-bucket/dumpling/" \
168+
--s3.endpoint="http://oss-cn-hangzhou-internal.aliyuncs.com" \
169+
--s3.provider="alibaba" \
170+
-r 200000 -F 256MiB
171+
```
172+
173+
* Back up data to Alibaba Cloud OSS using BR:
174+
175+
{{< copyable "shell-regular" >}}
176+
177+
```bash
178+
./br backup full --pd "127.0.0.1:2379" \
179+
--storage "s3://my-bucket/full/" \
180+
--s3.endpoint="http://oss-cn-hangzhou-internal.aliyuncs.com" \
181+
--s3.provider="alibaba" \
182+
--send-credentials-to-tikv=true \
183+
--ratelimit 128 \
184+
--log-file backuptable.log
185+
```
186+
187+
* Export data to Alibaba Cloud OSS using TiDB Lightning. You need to specify the following content in the YAML-formatted configuration file:
188+
189+
{{< copyable "" >}}
190+
191+
```
192+
[mydumper]
193+
data-source-dir = "s3://my-bucket/dumpling/?endpoint=http://oss-cn-hangzhou-internal.aliyuncs.com&provider=alibaba"
194+
```
195+
159196
### GCS command-line parameters
160197
161198
| Command-line parameter | Description |

0 commit comments

Comments
 (0)