How to avoid losing data by disk corruption?

For this very reason I use a cloud backup which backups to the cloud almost all the files on my computer and also keeps version backups.

The product I use is Backblaze, which comes with unlimited data plan and which keeps old file versions and deleted files for 30-days, extendible to up to 1-Year for additional $2/Month.

Such products are basically of the type "set it and forget it". They keep working in the background without your intervention.