Best back up software recommendations and elicense insurance

Well, I think I want to do both? I mean what is the best way to keep data up to date in case of either:

The OS becomes corrupted, virus or whatever and I have to reinstall a pervious backup

or

The computer dies & I have to install everything on a new PC…

Years ago when I tried being diligent about backing up, I never found a software system which truly “restored” all my files. Always ended up reinstalling every program… you know how that goes.