Your first layer of defense against data loss is:
(Make regular backups. What regular means depends on your particular circumstances. Don’t ignore any of the other options. Data integrity maintenance demands attention to every conceivable threat of loss.)