-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc](backup)Modify backup and restore documentation #1906
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 参数需要加粗和序号
... | ||
) | ||
PROPERTIES ("key"="value", ...); | ||
BACKUP SNAPSHOT <db_name>.{<snapshot_name>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个花括号,应该是方括号?
BACKUP SNAPSHOT <db_name>.{<snapshot_name>} | |
BACKUP SNAPSHOT <db_name>[.<snapshot_name>] |
PROPERTIES ("key"="value", ...); | ||
BACKUP SNAPSHOT <db_name>.{<snapshot_name>} | ||
TO `<repository_name>` | ||
[ON|EXCLUDE] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个方括号,应该是花括号?然后 ON 后面都是可选的?所以在 ON 前面应该有个方括号?
[ON|EXCLUDE] | |
[ { ON | EXCLUDE } |
illustrate: | ||
## Required Parameters | ||
|
||
`<db_name>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 需要加粗
- 需要序号
`<db_name>` | |
** 1. `<db_name>`** |
( <table_name> [ PARTITION ( <partition_name> [, ...] ) ] | ||
[, ...] ) ] | ||
|
||
[PROPERTIES ("key" = "value" [,...])]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PROPERTIES ("key" = "value" [,...])]; | |
[ PROPERTIES ( "<key>" = "<value>" [ , ... ] )]]; |
|
||
The name of the partition to be backed up. If not specified, all partitions of the corresponding table will be backed up. | ||
|
||
`<PROPERTIES>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`<PROPERTIES>` | |
`[ PROPERTIES ( "<key>" = "<value>" [ , ... ] ) ]` |
|
||
```sql | ||
RESTORE SNAPSHOT [db_name].{snapshot_name} | ||
FROM `repository_name` | ||
RESTORE SNAPSHOT [<db_name>].{<snapshot_name>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起来和 backup 语法类似的问题
illustrate: | ||
## Parameters | ||
|
||
`<db_name>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参数列表存在和 backup 类似的问题
2. brief: only show key information of RESTORE tasks, columns RestoreObjs, Progress, TaskErrMsg will not show | ||
|
||
|
||
## Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要介绍 [BRIEF]
2. brief: only show key information of RESTORE tasks, columns RestoreObjs, Progress, TaskErrMsg will not show | ||
|
||
|
||
## Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意,语法章节,需要区分必选参数(Required Parameters)和可选参数(Optional Parameters),分成两个小节
SHOW SNAPSHOT ON example_repo | ||
WHERE SNAPSHOT = "backup1" AND TIMESTAMP = "2018-05-05-15-34-26"; | ||
``` | ||
| Column | Note | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Column | Note | | |
| Column | Description | |
Versions
Languages
Docs Checklist