This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 62f974fae4f update backup
62f974fae4f is described below
commit 62f974fae4f05080e23a92167a28fe4b75b9e113
Author: jiafeng.zhang <[email protected]>
AuthorDate: Mon Aug 8 08:55:13 2022 +0800
update backup
---
.../Backup-and-Restore/BACKUP.md | 44 +++++++++++++++++
.../Backup-and-Restore/BACKUP.md | 57 ++++++++++++++++++++++
2 files changed, 101 insertions(+)
diff --git
a/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
b/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
index d779cb64e8c..bc025c00691 100644
---
a/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
+++
b/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
@@ -86,6 +86,50 @@ TO example_repo
EXCLUDE (example_tbl);
```
+4. Create a repository named s3_repo to link cloud storage directly without
going through the broker.
+
+```
+CREATE REPOSITORY `s3_repo`
+WITH S3
+ON LOCATION "s3://s3-repo"
+PROPERTIES
+(
+ "AWS_ENDPOINT" = "http://s3-REGION.amazonaws.com",
+ "AWS_ACCESS_KEY" = "AWS_ACCESS_KEY",
+ "AWS_SECRET_KEY"="AWS_SECRET_KEY",
+ "AWS_REGION" = "REGION"
+);
+```
+
+5. Create a repository named hdfs_repo to link HDFS directly without going
through the broker.
+
+```
+CREATE REPOSITORY `hdfs_repo`
+WITH hdfs
+ON LOCATION "hdfs://hadoop-name-node:54310/path/to/repo/"
+PROPERTIES
+(
+ "fs.defaultFS"="hdfs://hadoop-name-node:54310",
+ "hadoop.username"="user"
+);
+```
+
+6. Create a repository named minio_repo to link minio storage directly through
the s3 protocol.
+
+```
+CREATE REPOSITORY `minio_repo`
+WITH S3
+ON LOCATION "s3://minio_repo"
+PROPERTIES
+(
+ "AWS_ENDPOINT" = "http://minio.com",
+ "AWS_ACCESS_KEY" = "MINIO_USER",
+ "AWS_SECRET_KEY"="MINIO_PASSWORD",
+ "AWS_REGION" = "REGION",
+ "use_path_style" = "true"
+);
+```
+
### Keywords
```text
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
index e5b1778713a..cc384e18a33 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/BACKUP.md
@@ -86,6 +86,63 @@ TO example_repo
EXCLUDE (example_tbl);
```
+4. 创建名为 hdfs_repo 的仓库,依赖 Baidu hdfs broker
"hdfs_broker",数据根目录为:hdfs://hadoop-name-node:54310/path/to/repo/
+
+```
+CREATE REPOSITORY `hdfs_repo`
+WITH BROKER `hdfs_broker`
+ON LOCATION "hdfs://hadoop-name-node:54310/path/to/repo/"
+PROPERTIES
+(
+ "username" = "user",
+ "password" = "password"
+);
+```
+
+5. 创建名为 s3_repo 的仓库,直接链接云存储,而不通过broker.
+
+```
+CREATE REPOSITORY `s3_repo`
+WITH S3
+ON LOCATION "s3://s3-repo"
+PROPERTIES
+(
+ "AWS_ENDPOINT" = "http://s3-REGION.amazonaws.com",
+ "AWS_ACCESS_KEY" = "AWS_ACCESS_KEY",
+ "AWS_SECRET_KEY"="AWS_SECRET_KEY",
+ "AWS_REGION" = "REGION"
+);
+```
+
+6. 创建名为 hdfs_repo 的仓库,直接链接HDFS,而不通过broker.
+
+```
+CREATE REPOSITORY `hdfs_repo`
+WITH hdfs
+ON LOCATION "hdfs://hadoop-name-node:54310/path/to/repo/"
+PROPERTIES
+(
+ "fs.defaultFS"="hdfs://hadoop-name-node:54310",
+ "hadoop.username"="user"
+);
+```
+
+7. 创建名为 minio_repo 的仓库,直接通过 s3 协议链接 minio.
+
+```
+CREATE REPOSITORY `minio_repo`
+WITH S3
+ON LOCATION "s3://minio_repo"
+PROPERTIES
+(
+ "AWS_ENDPOINT" = "http://minio.com",
+ "AWS_ACCESS_KEY" = "MINIO_USER",
+ "AWS_SECRET_KEY"="MINIO_PASSWORD",
+ "AWS_REGION" = "REGION",
+ "use_path_style" = "true"
+);
+```
+
### Keywords
```text
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]