syncthing: Selective sync

Tags: til syncthing

Despite using syncthing for a decade I never thought to use the built in ignore patterns for "selective sync".

Specify paths to igore in a file called .stignore in the root directory of the syncthing share using the following patterns:

Example: Selectively sync only a single machine specific dir in a larger share

!/machine-1
*

Example: Selectively sync some projects in a larger share

!/project-1
!/project-2
*
Published on: 10 Jun 2026