I have a Git repository ~/Knowledge where I put most of my knowledge (notes, code, datasets, etc) aside from work stuff.
I used to have the remote URL be a hardcoded directory path /Volume/Backup/Knowledge and every now and then I would plug in a memory stick which mounted to /Volume/Backup, and push to the memory stick. My memory stick just died a few days ago so I had to find a new backup location.
I've had so many memory sticks and external SSDs die on me by now so I've bit the bullet and moved to a cloud service, that is to say a Hetzner VPS. I set up a bare Git repo on ~/Knowledge on the server and now I just push to there.
I guess I need to make sure that my Hetzner server is accessible in case my Mac's disk is inaccessible 🤔.