Taking snapshots

Snapshots can be taken system-wide, or focused on a single keyspace or table. Invoking a snapshot is done very easily with nodetool. To take a snapshot for all tables in a specific keyspace, simply type the name of that keyspace on the end of the command:

nodetool snapshot packt_chapter3Requested creating snapshot(s) for [packt_chapter3] with snapshot name [1538941504326] and options {skipFlush=false}Snapshot directory: 1538941504326

To take a snapshot for a specific table, use the --table option. Follow that with the table and keyspace names:

nodetool snapshot --table security_logs_by_location packt_chapter3Requested creating snapshot(s) for [packt_chapter3] with snapshot name [1538941525101] and options {skipFlush=false} ...

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.