For backking up files I can recommend restic. It encrypts and compresses your backup. At the same time it does deduplication. So if you backup a file twice, it takes only the space of one. If you are lucky it will even do that for oaets of a file. Although it only has a cli.
It seems a bit off that the only accept code via mail but host the repo with forgejo and have a lot of open PRs.
This is pretty much what I searched for. Thanks!