restore_snapshot

Definition

Restores the specified snapshot. Can be applied only to disabled tables.

Usage

restore_snapshot '<snapshot_name>'[, {RESTORE_ACL => <restore_acl_value>}]
Arguments
Parameter Description

snapshot_name

A snapshot name

restore_acl_value

A boolean field that defines whether or not to restore ACL

Examples

hbase(main):026:0> delete 'temp1', 'r2', 'cf1:c1'
Took 0.0769 seconds
hbase(main):028:0> delete 'temp1', 'r1', 'cf1:c2'
Took 0.0087 seconds
hbase(main):029:0> scan 'temp1'
ROW                   COLUMN+CELL
 r1                   column=cf1:c1, timestamp=1637434534105, value=value3
1 row(s)
Took 0.0236 seconds
hbase(main):038:0> disable 'temp1'
Took 0.8044 seconds
hbase(main):039:0> restore_snapshot 'snap1'
Took 1.3029 seconds
hbase(main):041:0> enable 'temp1'
Took 1.2668 seconds
hbase(main):042:0> scan 'temp1'
ROW                   COLUMN+CELL
 r1                   column=cf1:c1, timestamp=1637434534105, value=value3
 r1                   column=cf1:c2, timestamp=1637434285911, value=value4
 r2                   column=cf1:c1, timestamp=1637434293457, value=value5
2 row(s)
Took 0.0321 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it