This little script resumes an interrupted dd
copy at a given offset.
Before resuming, it rolls back (the amount of roll-back is OVERLAP_SIZE
* CHUNK
) then calculate the checksum of the overlap on both files to make sure that they are valid images of each other.
The checksums have to be checked manually by the operator (todo: automate).