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 ?
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!
6 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use