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 9dc0fdd6250 backup doc fix
9dc0fdd6250 is described below

commit 9dc0fdd625016542bb176f10e635a1c4ebbafde2
Author: jiafeng.zhang <[email protected]>
AuthorDate: Fri Aug 26 11:06:37 2022 +0800

    backup doc fix
---
 .gitignore                                          |  3 ++-
 docs/admin-manual/data-admin/backup.md              | 19 +++++++++++++++++++
 .../Backup-and-Restore/CREATE-REPOSITORY.md         |  1 +
 .../current/admin-manual/data-admin/backup.md       | 21 ++++++++++++++++++++-
 .../Backup-and-Restore/CREATE-REPOSITORY.md         |  1 +
 5 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index c1d977f9edd..c79d7eabfc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,4 +20,5 @@ npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
 
-*.zip
\ No newline at end of file
+*.zip
+yarn.lock
diff --git a/docs/admin-manual/data-admin/backup.md 
b/docs/admin-manual/data-admin/backup.md
index 23c2a0dc233..dc11fb55c70 100644
--- a/docs/admin-manual/data-admin/backup.md
+++ b/docs/admin-manual/data-admin/backup.md
@@ -69,6 +69,25 @@ ALTER TABLE tbl1 SET ("dynamic_partition.enable"="true")
    );
    ```
 
+2. Create a remote repository for s3 : s3_repo
+
+   ```
+   CREATE REPOSITORY `s3_repo`
+   WITH S3
+   ON LOCATION "s3://bucket_name/test"
+   PROPERTIES
+   (
+       "AWS_ENDPOINT" = "http://xxxx.xxxx.com";,
+       "AWS_ACCESS_KEY" = "xxxx",
+       "AWS_SECRET_KEY" = "xxx",
+       "AWS_REGION" = "xxx"
+   ); 
+   ```
+
+   >Note that.
+   >
+   >ON LOCATION is followed by Bucket Name here
+
 1. Full backup of table example_tbl under example_db to warehouse example_repo:
 
    ```sql
diff --git 
a/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
 
b/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
index f2e75390721..359aabd01f9 100644
--- 
a/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
+++ 
b/docs/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
@@ -48,6 +48,7 @@ illustrate:
 - Creation of repositories, relying on existing brokers or accessing cloud 
storage directly through AWS s3 protocol, or accessing HDFS directly.
 - If it is a read-only repository, restores can only be done on the 
repository. If not, backup and restore operations are available.
 - PROPERTIES are different according to different types of broker or S3 or 
hdfs, see the example for details.
+- ON LOCATION : if it is S3 , here followed by the Bucket Name.
 
 ### Example
 
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/data-admin/backup.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/data-admin/backup.md
index e3be015ba41..7c3ebc26b3d 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/data-admin/backup.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/data-admin/backup.md
@@ -56,7 +56,7 @@ Doris 支持将当前数据以文件的形式,通过 broker 备份到远端存
 
 ## 开始备份
 
-1. 创建一个hdfs的远程仓库example_repo:
+1. 创建一个 hdfs 的远程仓库 example_repo:
 
    ```sql
    CREATE REPOSITORY `example_repo`
@@ -69,6 +69,25 @@ Doris 支持将当前数据以文件的形式,通过 broker 备份到远端存
    );
    ```
 
+2. 创建一个 s3 的远程仓库 : s3_repo
+
+   ```
+   CREATE REPOSITORY `s3_repo`
+   WITH S3
+   ON LOCATION "s3://bucket_name/test"
+   PROPERTIES
+   (
+       "AWS_ENDPOINT" = "http://xxxx.xxxx.com";,
+       "AWS_ACCESS_KEY" = "xxxx",
+       "AWS_SECRET_KEY"="xxx",
+       "AWS_REGION" = "xxx"
+   ); 
+   ```
+
+   >注意:
+   >
+   >ON LOCATION 这里后面跟的是 Bucket Name
+
 2. 全量备份 example_db 下的表 example_tbl 到仓库 example_repo 中:
 
    ```sql
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
index c43e6c73303..b61c24dcb42 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY.md
@@ -48,6 +48,7 @@ PROPERTIES ("key"="value", ...);
 - 仓库的创建,依赖于已存在的 broker 或者直接通过AWS s3 协议访问云存储,或者直接访问HDFS
 - 如果是只读仓库,则只能在仓库上进行恢复。如果不是,则可以进行备份和恢复操作。
 - 根据 broker 或者S3、hdfs的不同类型,PROPERTIES 有所不同,具体见示例。
+- ON LOCATION ,如果是 S3 , 这里后面跟的是 Bucket Name。
 
 ### Example
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to