Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Apache Cassandra - Second Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

By : Nishant Neeraj
4.6 (10)
close
close
Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

4.6 (10)
By: Nishant Neeraj

Overview of this book

The book is aimed at intermediate developers with an understanding of core database concepts who want to become a master at implementing Cassandra for their application.
Table of Contents (10 chapters)
close
close

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 snapshot command provides an option to specify whether to back up the entire keyspace or just the selected column families.

  2. Taking a snapshot is just half of the story. To be able to restore the database at a later point, you need to move these...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete