Host a backup of your own code? It’s easy and can be done on a rpi. I wrote a go program in 1000 lines that automatically does this for me. And then I actually started using that as the main source and pushing the backup to github.
It also pulls down anything i star into a different folder which get a sync one a day. The rest get a sync every hour.