cain
cain copied to clipboard
cain truncaces specific warning prior computing schema SHA
As we can see in https://github.com/nuvo/cain/blob/bdb22f59c45b19dc639f6aa19d123cd4d2a3ede9/pkg/cain/cqlsh.go#L162 there is a removal of VERY SPECIFIC warning message. The problem is that for custom containers HOME may be different than that.
As a result this ends as incompatible schemas due to warning message.
Possible fixes:
- fix cqlsh so that it can write to HOME and then make new backups and use them with restore
- set env var HOME to the same value as it was in another containers which were used to make backups
- manually rename directories to point to 'proper' schema checksum on storage used as restore (in example s3 bucket paths)
- fix the code in this tool directly - the command should drop line which contains arbitrary HOMEDIR path and not just specific one, and use it to create backup and then use it as restore