DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

nagasree963_193876 avatar image
nagasree963_193876 asked ·

After taking a snapshot, where is the snapshot stored?

[FOLLOW UP QUESTION TO #6551]

okay. I take the snapshot. After taking snapshot, it gave the result like below:

  
                 
  1. Requested creating snapshot(s) for [mykeyspace] with snapshot name [1594907859884] and options {skipFlush=false} Snapshot directory: 1594907859884

can you please tell me where that snapshot is stored. I followed this link "https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/operations/opsBackupTakesSnapshot.html " But I am not finding the path.

snapshot
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 ·

The location of the snapshot is described in that document you posted yourself:

The snapshot is created in data_directory/keyspace_name/table_name-UUID/snapshots/snapshot_name directory.

Let me illustrate with an example. In my cluster, the data directory is configured in cassandra.yaml with:

data_file_directories:
     - /var/lib/cassandra/data

I have a table community.users so when I take a snapshot of the keyspace:

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

the full path to the snapshot directory 1595383069334 is:

/var/lib/cassandra/data/community/users-*/snapshots/1595383069334

And it contains the SSTables files plus the manifest and schema:

$ ls -1
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
manifest.json
schema.cql

Cheers!

2 comments 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.

Thank you so much.

0 Likes 0 · ·

Not a problem. Cheers!

0 Likes 0 · ·