Setting file size cap?

Hi everyone, I’m looking to cap file size for syncing, is that a feature in syncthing? I’ll explain why I need it.

I’m using syncthing for my gaming purposes to sync save files between my Steam Deck and Windows 10 PC, and it works like a charm, no issues so far, a real life-saver for games without Steam Cloud.

Things get trickier when emulators get involved. For example, in order to play some PSP games, you need to install Data, which can take up from 300 to 800 mb, which isn’t a lot, but it adds with time, and those Data files are located in the exact same folder as regular save files, which take up mere kilobytes of space.

Instead of just excluding every single Data folder one-by-one, I was thinking that maybe I should just cap the file size to, let’s say, 80mb? I’m not sure if that’s possible, and I couldn’t really find any useful information on the topic. Thanks in advance.

There is no such functionality in Syncthing. Don’t the data folder names follow some kind of a pattern? If yes, then you could try targeting them in the ignore patterns using wildcards *.

They don’t, but they’re easy to identify by the filesize or name, the folder always has something like “DAT” at the end. Shame there’s no file size cap but oh well, thanks for responding, that’s also a fix

Hi @SuperGigaMike !

You replied;

Well, then it seems like they DO have names which follows some kind of pattern. Please read up on ignore rules and see if you find anything useful!Maybe something like this:

/*DAT