- Create snapshot:
> nodetool snapshot thingsboard (or you cat set you namespace) Requested creating snapshot(s) for [all keyspaces] with snapshot name [1522059918232] and options {skipFlush=false} Snapshot directory: 1522059918232
- Copy snapshot on another directory:
> backup.sh thingsboard 1522059918232 /var/lib/cassandra /my_backup_dir
-
Install cassandra and recreate scheme
-
Run script for restore from backup:
> restore.sh thingsboard /var/lib/cassandra /my_backup_dir
- Run cassandra
Thx, for this code, you made great job.