Okay, for users on Linux I’ve found a solution which makes creating a “virtual” directory tree for syncing possible by using:
- mount --bind
- Syncthing: Advanced folder option “markerName”
See [SOLVED] zfs pool, mount --bind: Syncthing deleting files from dirs after unmount
Basically, I’m just creating a virtual view directory tree like this:
/view/stfolderroot ^- Mount-binded-dir-pointing-elsewhere-1 ____^- .stsubfolder (directory) ^- Mount-binded-dir-pointing-elsewhere-2
Then I’m setting up a new folder in Syncthing at “/view/stfolderroot” and change “markerName” in the advanced options panel to “Mount-binded-dir-pointing-elsewhere-1/.stsubfolder”.
If the mount-bind target goes unavailable (“dangling”), Syncthing will stop the folder instead of picking up deleted content to its database.
This approach assumes the whole “/view/stfolderroot” contents are pointing to content on the same target disk, of course. If you have different disks, you should setup a virtual directory tree view for each disk to ensure it is properly stopped in case the disk or disk mount point goes unavailable. (due to ISCSI, fsck or sth else)