I handle this with my own “cloud” on a third Mac (any mini will do) as a server and with Resilio Sync. See this thread Has anyone here rolled their own iCloud on a Synology? which is about using a Synology, also a solution, but I comment about my setup there.