Android and Arch Linux backups to TrueNAS

My current setup uses Synology Drive to backup my Android photos and files of an Arch Linux system to Synology. I set an rsync task then to backup the Synology to my TrueNAS.

I want to reverse my setup, that means use the TrueNAS as the first backup system and Synology as the second. Unfortunately Nextcloud does not support one way sync/backups.
How should I proceed?

I use active backup on a synology to backup NFS and SMB shares on a TN server

My question is if there is an open source alternative to Synology Drive so that I can backup my Android directly on TrueNAS.