Skip to content

Instantly share code, notes, and snippets.

View Abhiknoldur's full-sized avatar
🏠
Working from home

Abhiknoldur

🏠
Working from home
  • Paytm
  • Noida India
View GitHub Profile
//READ nodetool snapshot documentation in cassandra
//READ stack-overflow-topic gist or directly in stackoverflow -> http://stackoverflow.com/questions/25465904/how-can-i-restore-cassandra-snapshots
//EXPORT the databases schemas
cqlsh -e "DESCRIBE SCHEMA" > my_backup_name.schema
//Create snapshot of the whole server
nodetool snapshot my_backup_name
//Compress the backups