D. Venkata Naresh
D. Venkata Naresh

Reputation: 361

How to take Cassandra backup weekly?

How to take cassandra keyspace backup(snapshot) weekly by using nodetool? I mean how to take snapshot of only latest 1 week data.?

Upvotes: 2

Views: 243

Answers (1)

gsteiner
gsteiner

Reputation: 776

The way nodetool takes a snapshot of a keyspace is by creating a hard link to the SSTables. This means it is innately a full backup every time. You can enable incremental backups in Cassandra which will do a backup each time Cassandra flushes a memtable to an SStable. I don't believe there is a way to take a snapshot of JUST the last week of data in Cassandra using Nodetool.

Linking just in case you haven't seen the Datastax documentation around Snapshots and Incremental Backups.

https://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_backup_restore_c.html

Upvotes: 2

Related Questions