That's why many professional (and some prosumer) cameras have dual slots and allow you to write to both.
Typically I just have it set as mirrored since I only shoot occasionally as a hobbyist and a corrupted card is the most likely "fail state" I'd encounter.