I am trying to do a backup of all my data from Cassandra, in order to move them to a different machine.
I've been using nodetool to do this.
nodetool -h localhost snapshot -t my_backup keyspcace
After running nodetool, a new 'snapshot' folder gets created inside the folder of each column family, and that folder contains a folder named 'my_backup'. However, the size of this folder is rather small (under 10% of the size of the original folder). I've copied that folder onto my machine, stopped Cassandra, replaced the files inside each keyspace and started Cassandra back up.
However, now when I do a
select count(*) from something
I get a smaller number of entries than was on the original server.
Am I doing something wrong? How can I make a full backup of the data inside Cassandra in order to move them to a different machine?