John
John

Reputation: 41

Can Cassandra perform incremental backup and full backup alternately?

Cassandra supports incremental backups by setting cassandra.yaml. But how if I want doing the full backup after set incremental backup to true? Is there a way to running full backup without shutdown or restart the cassandra server?

What i mean is, for example, full backup on the first day of each month, and incremental backup everyday and the service can not be suspend.

Can this situation being perform?

Upvotes: 4

Views: 1360

Answers (1)

Andrew Weaver
Andrew Weaver

Reputation: 558

Full backups are performed by running nodetool snapshot on every node in the cluster. This will flush all memtables to disk and create hard links to the SSTables. The incremental backup feature that retains copies of commit log files is only useful if you have snapshots.

From the documentation for snapshots:

After a system-wide snapshot is performed, you can enable incremental backups on each node to backup data that has changed since the last snapshot

and restoring.

Restoring a keyspace from a snapshot requires all snapshot files for the table, and if using incremental backups, any incremental backup files created after the snapshot was taken.

Upvotes: 1

Related Questions