list_snapshots

Definition

Returns a list of snapshots — all or matching the given regular expression.

Usage

list_snapshots ['<snapshot_regex>']
Arguments
Parameter Description

snapshot_regex

A regular expression for searching snapshots

Examples

Without using a regular expression

hbase(main):011:0> list_snapshots
SNAPSHOT              TABLE + CREATION TIME
 snap1                temp1 (2021-11-24 06:31:27 UTC)
 snap2                ns1:temp2 (2021-11-24 06:32:21 UTC)
2 row(s)
Took 0.0403 seconds
=> ["snap1", "snap2"]

Using a regular expression

hbase(main):013:0> list_snapshots 'snap1*'
SNAPSHOT              TABLE + CREATION TIME
 snap1                temp1 (2021-11-24 06:31:27 UTC)
1 row(s)
Took 0.0157 seconds
=> ["snap1"]
Found a mistake? Seleсt text and press Ctrl+Enter to report it