$ ./nodetool -h 127.0.0.1 -p 8001 snapshot
$ ls -lhR /home/ercan/cassandra/data
# Use the nodetool clearsnapshot command to remove all existing snapshots:
$ ./nodetool -h 127.0.0.1 -p 8001 clearsnapshot
# Stop Cassandra and remove the files from that directory:
$ rm /home/ercan/data/*.db
# Copy the data from the snapshot directory into the data directory:
$ cp snapshots/1303701623423/* /home/ercan/data/
$ ./cassandra
Json backup
$ ./sstable2json /home/ercan/cassandra/data/users-Data.db > /tmp/json.txt
Comments
Post a Comment