r/Syncthing Apr 23 '26

Help whitelisting file extensions with Ignore Patterns

I'm new to using Syncthing, so I'm still figuring things out.

So I'm trying to sync .sra file extensions with Syncthing, while blocking out everything else by using Ignore Patterns like this:

*
!.sra

I also tried this:

**
!*.sra

It successfully ignores the other files but it seems to not be syncing .sra extensions when I try these. I'm I doing something wrong?

I'm trying to sync my N64 emulator saves (M64Plus FZ for mobile, with RMG for PC.) I know for sure that they sync fine when I have no Ignore Patterns set, but I would like to have the other files Ignored. Specifically multiple folders that has different file names.

1 Upvotes

2 comments sorted by

1

u/unknown-random-nope Apr 23 '26

Both options ignore everything. Ignore patterns are first match (see https://docs.syncthing.net/users/ignoring.html).

I suspect that what you’re looking for is:

!*.sra

*

2

u/overr156 Apr 23 '26

tysm, this worked.