For e.g. a collection of videos I need them to be accessible via Nextcloud and SMB at the same time ans all changes should be synchronized. Samba is running on the same server as Nextcloud. Using Webdav instead of SMB is not an alternative for performance reasons.
I wthink it might be possible to use the SMB as external storage for Nextcloud and as I understand it Nextcloud should detect changes made by an SMB client. But I would prefer not to use external storage for stability and complexity reasons to keep the Nextcloud server installation as simple as possible.
So i was thinking if it would be possible to install a Nextcloud client on the server (Debian) and let it synchronize the data from a local directory with Nextcloud? The same directory would be accessible by SMB and I would expect changes made via SMB to be detected by the Nextcloud client as a local file changes. Of course this works only for one or at most a few users because each one would need an own Nextcloud client.
On other drawback would be that this takes twice the storage space (which I would prefer to avoid as it’s several TB), but I was thinking that storing both the SMB directory and the Nextcloud data on the same btrfs subvolume and periodically running a deduplication tool might solve this problem quite elegantly without being visible to Samba or Nextcloud.
Might this work as I imagine or is there a misconception?