Remember folks, have an external backup disk that you only connect while doing backup. Do backups at least once per week, if you can remember to do them more frequently, even better.
When you take care, the pain of getting hit by ransomware is much more manageable.
(Of course, it’s even better to not get hit by ransomware at all. Security should be multilayered)