From bee68b75e372f40185b39c2ced942f2ba99630df Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:18:41 +0800 Subject: [PATCH 01/13] Update BACKUP.md --- .../Backup-and-Restore/BACKUP.md | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md index ea3f149387c99..9028da9bd6d7d 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md @@ -41,7 +41,7 @@ BACKUP 语法: ```sql -BACKUP SNAPSHOT [db_name].{snapshot_name} +BACKUP [GLOBAL] SNAPSHOT [db_name].{snapshot_name} TO `repository_name` [ON|EXCLUDE] ( `table_name` [PARTITION (`p1`, ...)], @@ -57,7 +57,11 @@ PROPERTIES ("key"="value", ...); - EXCLUDE 子句中标识不需要备份的表和分区。备份除了指定的表或分区之外这个数据库中所有表的所有分区数据。 - PROPERTIES 目前支持以下属性: - "type" = "full":表示这是一次全量更新(默认) - - "timeout" = "3600":任务超时时间,默认为一天。单位秒。 + - "timeout" = "3600":任务超时时间,默认为一天。单位秒。 + - "backup_privilege" = "true": 备份权限信息, 和BACKUP GLOBAL一起使用。 + - "backup_catalog" = "true":备份catalog信息,和BACKUP GLOBAL一起使用。 + - "backup_workload_group" = "true":备份workload group信息,和BACKUP GLOBAL一起使用。 + ### Example @@ -93,10 +97,27 @@ EXCLUDE (example_tbl); 4. 全量备份 example_db 下的表到仓库 example_repo 中: ```sql -BACKUP SNAPSHOT example_db.snapshot_label3 +BACKUP SNAPSHOT example_db.snapshot_label4 +TO example_repo; +``` + + +5. 备份权限、catalog、workloadgroup信息到仓库 example_repo 中: + +```sql +BACKUP GLOBAL SNAPSHOT snapshot_label5 TO example_repo; ``` +6. 备份权限和catalog信息到仓库 example_repo 中: + +```sql +BACKUP GLOBAL SNAPSHOT snapshot_label6 +TO example_repo +PROPERTIES ("backup_privileges" = "true", "backup_catalogs"="true"); +``` + + ### Keywords ```text From e1de7c320f4aa29a1c69359d2e1e37c84cc459ce Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:28:50 +0800 Subject: [PATCH 02/13] Update RESTORE.md --- .../Backup-and-Restore/RESTORE.md | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md index 6635f9213b060..9ecc989e18244 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md @@ -37,7 +37,7 @@ RESTORE 语法: ```sql -RESTORE SNAPSHOT [db_name].{snapshot_name} +RESTORE [GLOBAL] SNAPSHOT [db_name].{snapshot_name} FROM `repository_name` [ON|EXCLUDE] ( `table_name` [PARTITION (`p1`, ...)] [AS `tbl_alias`], @@ -62,6 +62,9 @@ PROPERTIES ("key"="value", ...); - "meta_version" = 40:使用指定的 meta_version 来读取之前备份的元数据。注意,该参数作为临时方案,仅用于恢复老版本 Doris 备份的数据。最新版本的备份数据中已经包含 meta version,无需再指定。 - "clean_tables": 表示是否清理不属于恢复目标的表。例如,如果恢复之前的目标数据库有备份中不存在的表,指定 `clean_tables` 就可以在恢复期间删除这些额外的表并将其移入回收站。 - "clean_partitions":表示是否清理不属于恢复目标的分区。例如,如果恢复之前的目标表有备份中不存在的分区,指定 `clean_partitions` 就可以在恢复期间删除这些额外的分区并将其移入回收站。 + - "reserve_privilege" = "true", 表示恢复权限信息,和RESTORE GLOBAL一起使用。 + - "reserve_catalog" = "true", 表示恢复catalog信息,和RESTORE GLOBAL一起使用。 + - "reserve_workload_group"="true", 表示恢复workload group信息,和RESTORE GLOBAL一起使用。 ### Example @@ -106,6 +109,32 @@ PROPERTIES ); ``` +4. 从 example_repo 中恢复备份权限、catalog和workload group信息,时间版本为 "2018-05-04-18-12-18"。 + +```sql +RESTORE GLOBAL SNAPSHOT `snapshot_4` +FROM `example_repo` +EXCLUDE ( `backup_tbl` ) +PROPERTIES +( + "backup_timestamp"="2018-05-04-18-12-18" +); +``` + +5. 从 example_repo 中恢复备份权限和workload group信息,时间版本为 "2018-05-04-18-12-18"。 + +```sql +RESTORE GLOBAL SNAPSHOT `snapshot_5` +FROM `example_repo` +EXCLUDE ( `backup_tbl` ) +PROPERTIES +( + "backup_timestamp"="2018-05-04-18-12-18", + "reserve_privilege" = "true", + "reserve_workload_group"="true" +); +``` + ### Keywords RESTORE From 6197cdc6f659880bf4c47f927fc9eef2db203e42 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:31:11 +0800 Subject: [PATCH 03/13] Update CANCEL-BACKUP.md --- .../Backup-and-Restore/CANCEL-BACKUP.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md index 2e5d7f5b95884..4cca99295f758 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md @@ -37,7 +37,7 @@ CANCEL BACKUP 语法: ```sql -CANCEL BACKUP FROM db_name; +CANCEL [GLOBAL] BACKUP [FROM db_name]; ``` ### Example @@ -48,6 +48,12 @@ CANCEL BACKUP FROM db_name; CANCEL BACKUP FROM example_db; ``` +2. 取消全局的BACKUP 任务。 + +```sql +CANCEL GLOBAL BACKUP; +``` + ### Keywords CANCEL, BACKUP From bcb217bc2d3397980bc34c1c102009a7b9e22ca5 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:32:33 +0800 Subject: [PATCH 04/13] Update CANCEL-RESTORE.md --- .../Backup-and-Restore/CANCEL-RESTORE.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md index 5a39921be3fbf..df27916f7e4f4 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md @@ -37,7 +37,7 @@ CANCEL RESTORE 语法: ```sql -CANCEL RESTORE FROM db_name; +CANCEL [GLOBAL] RESTORE [FROM db_name]; ``` 注意: @@ -52,6 +52,12 @@ CANCEL RESTORE FROM db_name; CANCEL RESTORE FROM example_db; ``` +2. 取消全局的RESTORE 任务。 + +```sql +CANCEL GLOBAL RESTORE; +``` + ### Keywords CANCEL, RESTORE From dd3fb8580db06da0706da420b2cab5f20e380e6b Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:39:11 +0800 Subject: [PATCH 05/13] Update BACKUP.md --- .../Data-Definition-Statements/Backup-and-Restore/BACKUP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md index 9028da9bd6d7d..a3d0ebd1780de 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md @@ -114,7 +114,7 @@ TO example_repo; ```sql BACKUP GLOBAL SNAPSHOT snapshot_label6 TO example_repo -PROPERTIES ("backup_privileges" = "true", "backup_catalogs"="true"); +PROPERTIES ("backup_privilege" = "true", "backup_catalog"="true"); ``` From 1ac0a1c71265f05850839e55db2c84e85a396308 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:44:26 +0800 Subject: [PATCH 06/13] Update RESTORE.md --- .../Backup-and-Restore/RESTORE.md | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md index 12fa68ad394e0..b5eadec3b3a26 100644 --- a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md +++ b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/RESTORE.md @@ -37,7 +37,7 @@ This statement is used to restore the data backed up by the BACKUP command to th grammar: ```sql -RESTORE SNAPSHOT [db_name].{snapshot_name} +RESTORE [GLOBAL] SNAPSHOT [db_name].{snapshot_name} FROM `repository_name` [ON|EXCLUDE] ( `table_name` [PARTITION (`p1`, ...)] [AS `tbl_alias`], @@ -63,6 +63,9 @@ illustrate: - "meta_version" = 40: Use the specified meta_version to read the previously backed up metadata. Note that this parameter is used as a temporary solution and is only used to restore the data backed up by the old version of Doris. The latest version of the backup data already contains the meta version, no need to specify it. - "clean_tables": Indicates whether to clean up tables that do not belong to the restore target. For example, if the target db before the restore has tables that are not present in the snapshot, specifying `clean_tables` can drop these extra tables and move them into the recycle bin during the restore. - "clean_partitions": Indicates whether to clean up partitions that do not belong to the restore target. For example, if the target table before the restore has partitions that are not present in the snapshot, specifying `clean_partitions` can drop these extra partitions and move them into the recycle bin during the restore. + - "reserve_privilege" = "true":Whether to restore privileges,use with RESTORE GLOBAL. + - "reserve_catalog" = "true":Whether to restore catalogs,use with RESTORE GLOBAL. + - "reserve_workload_group" = "true":Whether to restore workload groups,use with RESTORE GLOBAL. ### Example @@ -107,6 +110,33 @@ PROPERTIES ); ``` +4. Restore privileges,catalogs, workload groups in backup snapshot_4 from example_rep,the time version is "2018-05-04-18-12-18". + +```sql +RESTORE GLOBAL SNAPSHOT `snapshot_4` +FROM `example_repo` +EXCLUDE ( `backup_tbl` ) +PROPERTIES +( + "backup_timestamp"="2018-05-04-18-12-18" +); +``` + +5. Restore privileges and workload groups in backup snapshot_5 from example_rep,the time version is "2018-05-04-18-12-18". + +```sql +RESTORE GLOBAL SNAPSHOT `snapshot_5` +FROM `example_repo` +EXCLUDE ( `backup_tbl` ) +PROPERTIES +( + "backup_timestamp"="2018-05-04-18-12-18", + "reserve_privilege" = "true", + "reserve_workload_group"="true" +); +``` + + ### Keywords ``` From 197c776e7e197d3b6db330759587127625c21369 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:46:45 +0800 Subject: [PATCH 07/13] Update BACKUP.md --- .../Backup-and-Restore/BACKUP.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md index f6ea2a1a26e5c..aa772bde03524 100644 --- a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md +++ b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/BACKUP.md @@ -39,7 +39,7 @@ This statement is used to back up the data under the specified database. This co grammar: ```sql -BACKUP SNAPSHOT [db_name].{snapshot_name} +BACKUP [GLOBAL] SNAPSHOT [db_name].{snapshot_name} TO `repository_name` [ON|EXCLUDE] ( `table_name` [PARTITION (`p1`, ...)], @@ -56,6 +56,9 @@ illustrate: - PROPERTIES currently supports the following properties: - "type" = "full": indicates that this is a full update (default) - "timeout" = "3600": The task timeout period, the default is one day. in seconds. + - "backup_privilege" = "true":Whether to backup privileges,use with BACKUP GLOBAL. + - "backup_catalog" = "true":Whether to backup catalogs,use with BACKUP GLOBAL. + - "backup_workload_group" = "true":Whether to backup workload groups,use with BACKUP GLOBAL. ### Example @@ -95,6 +98,21 @@ BACKUP SNAPSHOT example_db.snapshot_label3 TO example_repo; ``` +5. buckup privileges,catalog and workloadgroup to the repository example_repo: + +```sql +BACKUP GLOBAL SNAPSHOT snapshot_label5 +TO example_repo; +``` + +6.buckup privileges and catalog to the repository example_repo: + +```sql +BACKUP GLOBAL SNAPSHOT snapshot_label6 +TO example_repo +PROPERTIES ("backup_privilege" = "true", "backup_catalog"="true"); +``` + ### Keywords BACKUP From 8974987e712d9e25f1b46f5fea30dbfb50035218 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:47:31 +0800 Subject: [PATCH 08/13] Update CANCEL-BACKUP.md --- .../Backup-and-Restore/CANCEL-BACKUP.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md index 9ecbc9b9c25cf..67db24cbd8a65 100644 --- a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md +++ b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-BACKUP.md @@ -37,7 +37,7 @@ This statement is used to cancel an ongoing BACKUP task. grammar: ```sql -CANCEL BACKUP FROM db_name; +CANCEL [GLOBAL] BACKUP [FROM db_name]; ``` ### Example @@ -48,6 +48,12 @@ CANCEL BACKUP FROM db_name; CANCEL BACKUP FROM example_db; ``` +2. Cancel the GLOBAL BACKUP task. + +```sql +CANCEL GLOBAL BACKUP; +``` + ### Keywords CANCEL, BACKUP From 7c850b92947ed0cbc2f4945290669df903135fa1 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 3 Dec 2024 15:48:16 +0800 Subject: [PATCH 09/13] Update CANCEL-RESTORE.md --- .../Backup-and-Restore/CANCEL-RESTORE.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md index fbc0e9d315c2d..4bc0219691475 100644 --- a/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md +++ b/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CANCEL-RESTORE.md @@ -37,7 +37,7 @@ This statement is used to cancel an ongoing RESTORE task. grammar: ```sql -CANCEL RESTORE FROM db_name; +CANCEL [GLOBAL] RESTORE [FROM db_name]; ``` Notice: @@ -52,6 +52,12 @@ Notice: CANCEL RESTORE FROM example_db; ``` +2. Cancel the GLOBAL RESTORE task. + +```sql +CANCEL GLOBAL RESTORE; +``` + ### Keywords CANCEL, RESTORE From e401e0f7a8e1a08b2072b35f831a6989f47b4ed5 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Thu, 5 Dec 2024 10:10:10 +0800 Subject: [PATCH 10/13] Update SHOW-BACKUP.md --- .../sql-statements/Show-Statements/SHOW-BACKUP.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md b/docs/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md index da0cd0532a08e..3f858e1d17b5a 100644 --- a/docs/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md +++ b/docs/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md @@ -37,7 +37,7 @@ This statement is used to view BACKUP tasks grammar: ```sql - SHOW BACKUP [FROM db_name] + SHOW [GLOBAL] BACKUP [FROM db_name] [WHERE SnapshotName ( LIKE | = ) 'snapshot name'] ``` @@ -74,6 +74,12 @@ illustrate: SHOW BACKUP FROM example_db; ``` +2. View the last GLOBAL BACKUP task. + + ```sql + SHOW GLOBAL BACKUP; + ``` + ### Keywords SHOW, BACKUP From 598662e47e3f1bd847fbe855b416216bd438bdff Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Thu, 5 Dec 2024 10:14:11 +0800 Subject: [PATCH 11/13] Update SHOW-RESTORE.md --- .../sql-statements/Show-Statements/SHOW-RESTORE.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md b/docs/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md index 0b0ea484df8e0..7b46b20da28f6 100644 --- a/docs/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md +++ b/docs/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md @@ -37,7 +37,7 @@ This statement is used to view RESTORE tasks grammar: ```SQL -SHOW [BRIEF] RESTORE [FROM DB_NAME] +SHOW [BRIEF] [GLOBAL] RESTORE [FROM DB_NAME] ``` illustrate: @@ -77,7 +77,11 @@ illustrate: ```sql SHOW RESTORE FROM example_db; ``` +2. View the latest GLOBAL RESTORE task. + ```sql + SHOW GLOBAL RESTORE; + ``` ### Keywords SHOW, RESTORE From dae30d22e3799016cc504d962304c1a851cc0301 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Thu, 5 Dec 2024 10:19:23 +0800 Subject: [PATCH 12/13] Update SHOW-BACKUP.md --- .../sql-statements/Show-Statements/SHOW-BACKUP.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md index 2cb838e9bb3ef..9722a191e9d02 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-BACKUP.md @@ -37,7 +37,7 @@ SHOW BACKUP 语法: ```sql - SHOW BACKUP [FROM db_name] + SHOW [GLOBAL] BACKUP [FROM db_name] [WHERE SnapshotName ( LIKE | = ) 'snapshot name' ] ``` @@ -73,7 +73,11 @@ SHOW BACKUP ```sql SHOW BACKUP FROM example_db; ``` - +2. 查看 最后一次 GLOBAL BACKUP 任务。 + + ```sql + SHOW GLOBAL BACKUP; + ``` ### Keywords SHOW, BACKUP From 11071b929f0980df4bc2c06ea6c754b066bacd57 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Thu, 5 Dec 2024 10:20:28 +0800 Subject: [PATCH 13/13] Update SHOW-RESTORE.md --- .../sql-statements/Show-Statements/SHOW-RESTORE.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md index 35d1c1980d1be..77d8f59c09a22 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/Show-Statements/SHOW-RESTORE.md @@ -37,7 +37,7 @@ SHOW RESTORE 语法: ```SQL -SHOW [BRIEF] RESTORE [FROM DB_NAME] +SHOW [BRIEF] [GLOBAL] RESTORE [FROM DB_NAME] ``` 说明: @@ -77,6 +77,11 @@ SHOW [BRIEF] RESTORE [FROM DB_NAME] ```sql SHOW RESTORE FROM example_db; ``` +2. 查看 最后一次 GLOBAL RESTORE 任务。 + + ```sql + SHOW GLOBAL RESTORE; + ``` ### Keywords