The retailer is reeling from a ransomware attack - here's what other people did when in the same situation.