Shell commands
The following table shows actions you can take from the shell.
Action |
Shell command |
Comments |
---|---|---|
Take a snapshot of |
snapshot 'tableX', 'snapshotX' |
Snapshots can be taken while a table is disabled, or while a table is online and serving traffic.
|
Restore snapshot |
restore_snapshot ‘snapshotX’ |
For emergency use only. Restoring a snapshot replaces the current version of a
table with different version. To run this command, you must disable the
target table. The |
List all available snapshots |
list_snapshots |
|
List all available snapshots starting with |
list_snapshots ‘my_snapshot_.*’ |
|
Remove a snapshot called |
delete_snapshot ‘snapshotX’ |
|
Create a new table |
clone_snapshot ‘snapshotX’, ‘tableY’ |
Cloning a snapshot creates a new read/write table that serves the data kept at the time of the snapshot. The original table and the cloned table can be modified independently; new data written to one table does not show up on the other. |