I would like to get a few files sync’ed directly from my NAS (DS220+) to my Android phone.
For that purpose I installed Syncthing as a docker container (following instructions on How to Install Syncthing on Your Synology NAS – Marius Hosting). So far this seemed to have worked OK - container is up and running. The mount paths as displayed in the volume settings after installation are: /docker/syncthing → /config /docker/syncthing/data1 → /data1 /docker/syncthing/data2 → /data2 (FWIW: Unlike in the instructions I decided to create the mount paths for data1 and data2 in /docker/syncthing and not in /docker, to avoid cluttering my docker path)
However I’m struggling to get a (shared) folder from outside mounted into the container so that I can sync its contents. I read the basic help about docker in Synology Help and other places. I understand there are different mount types (volume, bind, tmpfs) but have no way to find out which type Synology uses when I specify a mount path in the volume settings. I’m not sure if the type is relevant - is it?
I added a mount-path for my shared folder as: /shared/Syncthing → /config/NAS-sync where /shared is one of my shared folders as displayed in DSM File Station. Looking at the contents with bash-terminal (from within the running container) I do see the folder “NAS-sync” in /config and correct content, but with odd permissions
root@badecafee17f:/# ls -al config | grep NAS d--------- 1 1027 abc 90 Sep 20 16:47 NAS-sync
On Android phone: I installed Syncthing, setup my NAS as device and established connection OK. When I set up “Sync2NAS” on my phone as local folder and accept this folder under my NAS device (on phone) it instantly gets replicated to my NAS filesystem under the name “Sync2NAS” in the /config folder (note the different permissions and quotes compared to above):
root@badecafee17f:/config# ls -al | grep NAS drwxr-xr-x 1 abc abc 46 Sep 20 18:06 ‘Sync2NAS’
Now I have two different folders, one mounted from the NAS-side and one created by Syncthing on the phone - but no way to sync files between them.
Trying to give the folder on the phone the same name as the one mounted, ends up in a folder being created on the NAS with the cryptic folder ID instead of using the name (which would be conflicting with the existing folder).
Trying the other way round (first having the folder created from remote, then mounting the NAS shared folder under that very name) ends with an error: Network unreachable" when trying to synchronize new content.
I am new to docker and to Syncthing, and never before ventured into the depths of the DSM. So I may have missed something fundamental. Any help is appreciated!