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 9d5ee640f1d backup s3 example 9d5ee640f1d is described below commit 9d5ee640f1dad3bd893283b486d36a5fa3c7a64c Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Wed Jul 27 15:02:27 2022 +0800 backup s3 example backup s3 example --- .../Backup-and-Restore/CREATE-REPOSITORY.md | 19 ++++++++++++++++++- .../Backup-and-Restore/CREATE-REPOSITORY.md | 16 ++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) 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 dab7e695a2c..f2e75390721 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 @@ -122,8 +122,25 @@ PROPERTIES ### Keywords ``` -CREATE, REPOSITORY +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 + + CREATE, REPOSITORY ### Best Practice 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 a78618a2aef..c43e6c73303 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 @@ -120,6 +120,22 @@ PROPERTIES ); ``` +6. 创建名为 minio_repo 的仓库,直接通过 s3 协议链接 minio. + +```sql +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 CREATE, REPOSITORY --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org