You can’t use rsync for that, I mean you could rsync (via SSH) directly to the respective folder on the server, but then you would have too “occ files:scan” the files in order for Nextcloud to recognize them, or you could rsync to a WebDAV mount, but I’d say it would probably be easier to use Rclone: https://rclone.org/webdav/