I have a VM with Ubuntu running - Rclone mounts encrypted google and ACD and the mount is then given to Kodi with Samba (Cif-Shares) … also a FTP ist in place in this VM giving access to all cloud ressources under Linux in LAN …
Runs nearly perfect Kodi scans the directories of the cifs shared Unionfs witch gives instant access to all files - even if not allready uploaded (moved) to cloud (witch happens in the background).
So the VM itself has Google + Amazon (as backup) mounted and unionfs is giving me a writeable system with local hdd space.(buffering upload - 250 GB virtual HDD attached) - local data from union fs is permanently uploaded after hitting the VM over CIFS (older than X hours so complete copy to vm is secured before uploading) … second script copys google permanently to amazon (HA) with help of a cloud server instance.
in this setup kodi runs very good … (Full HD X264 is converted to H265 so big files are no problem anymore and also bandwith use is very low).
Kodis DB runs in my inviroment under mysql (advancedsettings.xml)… this setup and also the shares are contributed to all Kodi devices in my LAN … sharing the complete setup with all maniacs in my family…8)
External devices can access the ressources under Kodi with the FTP solution … port forwarding to the VM on router (don’t miss the oportunity to watch all shares with Kodi on android smartphone/device - good for business trips .8)).
Local upload to cloud goes through home bandwith … syncing the clouds runs on server in cloud (scaleway - very cheap - 200 Mbit connection)
thanks to the new Windows mount of Rcone i can now sort uploaded data also directly under Windows (little bit easier than doing that under linux …8) ).
This setup also gives me the possibility to take the VM with me … and giving access to all shares in another LAN enviroment … or even transfer it in future to cloud - but i feel much more safe when encryption/decryption is done in LAN on my personaly owned devices (VM) …8) )
The VM itself is also encrypted - shutting down the vm secures the hole setup (PAsswords/Scrips/transfers/logs/External access/User accounts/…)…