> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW SNAPSHOT

> Views data snapshots in a specified repository.

Views data snapshots in a specified repository. For more information, see [data backup and restoration](/documents/4.2/administration/management/Backup_and_restore.md).

## Syntax

```SQL theme={null}
SHOW SNAPSHOT ON <repo_name>
[WHERE SNAPSHOT = <snapshot_name> [AND TIMESTAMP = <backup_timestamp>]]
```

## Parameters

| **Parameter** | **Description** |
| - | - |
| repo\_name | Name of the repository that the snapshot belongs to. |
| snapshot\_nam | Name of the snapshot. |
| backup\_timestamp | Backup timestamp of the snapshot. |

## Return

| **Return** | **Description** |
| - | - |
| Snapshot | Name of the snapshot. |
| Timestamp | Backup timestamp of the snapshot. |
| Status | Displays `OK` if the snapshot is okay. Displays error message if the snapshot is not okay. |
| Database | Name of the database that the snapshot belongs to. |
| Details | JSON-formatted directory and structure of the snapshot. |
| ClusterId | ID of the cluster that created the snapshot. Supported from v4.2.0 onwards. |
| FinishTime | Time at which the backup finished. Supported from v4.2.0 onwards. |
| TTL | Retention of the snapshot, as set by the `ttl` property of [BACKUP](/documents/4.2/sql-reference/sql-statements/backup_restore/BACKUP.md). Supported from v4.2.0 onwards. |
| ExpireTime | Time at which the snapshot expires and becomes eligible for automatic cleanup. Supported from v4.2.0 onwards. |

`ClusterId`, `FinishTime`, `TTL` and `ExpireTime` are read from the snapshot itself. All four are `NULL` when the snapshot metadata cannot be read, which is the case for a snapshot created before v4.2.0, for a backup that is still running, and for one that was interrupted. `TTL` and `ExpireTime` are also `NULL` for a snapshot that is kept forever.

`Timestamp` is when the backup started and is what names the snapshot; `FinishTime` is when it wrapped up, and is the point `ExpireTime` was measured from.

## Example

Example 1: Views snapshots in repository `example_repo`.

```SQL theme={null}
SHOW SNAPSHOT ON example_repo;
```

Example 2: Views the snapshot named `backup1` in repository `example_repo`.

```SQL theme={null}
SHOW SNAPSHOT ON example_repo
WHERE SNAPSHOT = "backup1";
```

Example 3: Views the snapshot named `backup1` with backup timestamp `2018-05-05-15-34-26` in repository `example_repo`.

```SQL theme={null}
SHOW SNAPSHOT ON example_repo 
WHERE SNAPSHOT = "backup1" AND TIMESTAMP = "2018-05-05-15-34-26";
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.