Fissh is tool for fixing corrupted files copied over ssh.
- File path on the client.
- File path on the server. format: user@server:/path/to/file
- createMd5sumsList for file on the clinet
- ask server to createMd5sumsList for his file.
- compareAndFix
- split the file into chunk(10M). chunks will be saved on /tmp/Fissh.chunks.randomtext
- calculate md5sum for each chunk
- output list in the format: md5sum \t chunkpath
- Input File to be fixed: filename
- CorrectChunk: filename
- ChunkIndex: Number
Fix files assumes the input file to be list of equal size chunks. the chunk size equals to CorrectChunk size. Fix files overwrite chunk at ChunkIndex with the CorrectChunk.
- clean temporary files
- Input File to be fixed: filename
- Server md5sumList
- Client md5sumList
- compare md5sums in both lists
- scp chunks for corrupted chunks
- fix corrupted chunks