I backup the photos/videos from my phone, laptop, and other devices onto a home server using Syncthing, but wanting to configure them so that they’ll send all files to the server while ignoring files/folder matching certain patterns
That way if I download a picture and store it in Folder A, it will be synced to my home server but won’t be sent back to the Phone if it’s changed or deleted from the phone
I’ve got quite a large gallery of pictures and videos that take a large amount of space, but currently the .stignore file prevents processing any files that match the patterns in it and setting the phone or home server to send/receive only would prevent syncing other files/folders
Maybe we could add some extra pattern markers as prefixes in .stignore? Like adding a (?r) for only matching when receiving and (?s) for only matching when sending
so that something like this (?r)**/.tmp* would only ignore any .tmp* file/folder when receiving, but would ignore that pattern when sending files (always send it, but ignore receiving it)
or something in my use case >
(?r)(?i)**/Patreon/ would always send the contents of the (case-insensitive) Patreon folder, but never receive any
(?r)(?i)(?d)**/Patreon/ would do the same as before, but still remove files that are removed upstream. This way if you sync a file from your phone but delete it elsewhere and that is propagated out, it would still be removed on the phone
It would be great to setup a Selective Syncing system Another option would be to have optional secondary ignore files like .stsend and .streceive that are specific to sending or receiving specifically.
If someone knows an existing method of doing this without splitting a single synchronized folder into many, it would be great to know how to set it up