Have you checked out rclone? Local encryption, targets almost any cloud storage provider, and open source.
Syncthing might also be part of a solution to this with the Untrusted Devices feature [1].
Thanks!
Another useful tool that can be added into a solution: