Perhaps https://rclone.org/ would be of use to you. It handles other cloud storage providers as well, comes with convenient encryption functionality, and its synchronisation is far more reliable and controllable (at least this is my experience using it with OneDrive and S3).