Files
doris/docs/en/sql-manual/sql-reference/Show-Statements/SHOW-SNAPSHOT.md
Mingyu Chen 74a482ca7f [fix] fix docs build bug (#9293)
After this PR #9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
2022-04-28 22:19:04 +08:00

2.2 KiB

title, language
title language
SHOW-SNAPSHOT en

SHOW-SNAPSHOT

Name

SHOW SNAPSHOT

Description

This statement is used to view backups that already exist in the repository.

grammar:

SHOW SNAPSHOT ON `repo_name`
[WHERE SNAPSHOT = "snapshot" [AND TIMESTAMP = "backup_timestamp"]];

illustrate:

  1. The meanings of the columns are as follows: Snapshot: The name of the backup Timestamp: corresponds to the time version of the backup Status: If the backup is normal, it will display OK, otherwise it will display an error message
  2. If TIMESTAMP is specified, the following additional information is displayed: Database: The name of the database to which the backup data originally belonged Details: In the form of Json, the data directory and file structure of the entire backup are displayed

Example

  1. View the existing backups in the repository example_repo

    SHOW SNAPSHOT ON example_repo;
    
  2. View only the backup named backup1 in the repository example_repo:

    SHOW SNAPSHOT ON example_repo WHERE SNAPSHOT = "backup1";
    
  3. View the details of the backup named backup1 in the warehouse example_repo with the time version "2018-05-05-15-34-26":

    SHOW SNAPSHOT ON example_repo
    WHERE SNAPSHOT = "backup1" AND TIMESTAMP = "2018-05-05-15-34-26";
    

Keywords

SHOW, SNAPSHOT

Best Practice