It seems like Gitdocs fits the requirement for encryption. Just use git+ssh for the remote of the repo, and transfers will be encrypted. Then, I guess, you need to set up ecryptfs or something on the server side so that things are encrypted on-disk, and then you can back up the encrypted files.
Not simple, but possible.