O'Reilly logo

Mastering Apache Cassandra - Second Edition by Nishant Neeraj

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Backup and restoration

Cassandra provides a simple backup tool called nodetool snapshot to take incremental snapshots and back up of data. The snapshot command flushes MemTables to the disk and creates a backup by creating a hard link to SSTables (SSTables are immutable).

Note

Hard link is a directory entry associated with file data on a filesystem. It can roughly be assumed as an alias to a file that refers to the location where data is stored. It is unlike a soft link that just aliases filenames, not the actual underlying data.

These hard links stay under the data directory, which is placed under <keyspace>/<column_family>/snapshots.

The general plan to back up a cluster roughly follows these steps:

  1. Take a snapshot of each node one by one. The

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required