Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

kumar.bharathb023_111999 avatar image
kumar.bharathb023_111999 asked ·

Is it possible collect all snapshot files with a specific tag on a node?

is it possible collect all snapshot files with a specific tag on a node ?

backup
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

As I explained in your other post (question #9931), the snapshot is stored in the snapshots subdirectory of each table that was backed up.

Here's an example where I took a snapshot and tagged it "mybackup":

$ nodetool snapshot community.users -t mybackup
Requested creating snapshot(s) for [community.users] with snapshot name [mybackup] and options {skipFlush=false}
Snapshot directory: mybackup

The data files including the backup manifest and table schema is located in community/users-*/snapshots/mybackup. Here's an example of its contents:

ba-1-bti-CompressionInfo.db
ba-1-bti-Data.db
ba-1-bti-Digest.crc32
ba-1-bti-Filter.db
ba-1-bti-Partitions.db
ba-1-bti-Rows.db
ba-1-bti-Statistics.db
ba-1-bti-TOC.txt
ba-2-bti-CompressionInfo.db
ba-2-bti-Data.db
ba-2-bti-Digest.crc32
ba-2-bti-Filter.db
ba-2-bti-Partitions.db
ba-2-bti-Rows.db
ba-2-bti-Statistics.db
ba-2-bti-TOC.txt
manifest.json
schema.cql

Note that a snapshot is a full backup and the snapshot subdirectory contains the full set of data files that belong to that snapshot.

For more information, see Backing up and restoring data in Apache Cassandra. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.