Folder marker - custom path

Running syncthing via docker on my NAS. I want to ‘send-only’ a folder from the NAS to other devices.

There’s a folder called ‘Archive’ on my NAS that I wish like to sync with the rest of my devices (1 way only - nothing should ever touch the contents of that folder).

I know syncthing has the send-only/ignoredelete etc options - but it would give me much more peace of mind if I could mount the Archive folder in syncthing as read-only.

Syncthing needs to write the folder marker inside the shared folder (Archive), which forces me to mount the folder inside syncthing as rw.

Is there any way to send-only a read-only folder? E.g. telling syncthing to keep the folder markers outside of the read-only folder, in a custom location?

You can set the folder marker to any name you expect to exist inside the folder in question.

1 Like

The folder marker is a write once thing. I don’t think syncthing needs to write it after it’s written for the first time.

1 Like

Indeed, and won’t write to it at all if it’s a file or directory that already exists.

1 Like

Thank you both, this was a lot easier than I thought.

Simply adding a .stfolder (and an optional .stignore) works exactly the way I hoped it would.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.