Sync Multiple Folders in One action

Please excuse me very new to this product and the approach. I have a Linux machine which is device and sync to a windows large disk system as the remote. Which I dont wish to sync all folders I do wish to sync a good number under the home directory. Do I have to create a share folder for each I wish to sync, or, can I put a number of folders as one folder perhaps seperating with comma or the like. Sorry if I havent explained this very well, basicall numerous folders under home to be sent to same start folder on remote which the senders then become part of that tree. Thank you for your help in this instant

I would probably share the whole folder and then use ignore patterns to either:

Ignore the folders you don’t want to sync, or Ignore everything and “not ignore” the folders you do want to sync.

https://docs.syncthing.net/users/ignoring.html

Thank you so much that is the perfect answer for me I understand the format , brilliant, thank you so much

1 Like

Mike, Everythihng seem ok, although, I included a !Public selection in my signore and it did infact get all I wanted, plus, is also got the Public folders from below in the tree from .wine and QT which of course have Public folders. What expression am I missing to exclude this deeper look in the file folder tree. Hope this explains it thanks for all your help

I’m not really an expert in the more complex ignore patterns but I know they are very flexible. You can use * in paths like /public/*/someotherdirectory or /public/**/someotherdirectory to include or exclude deeper folders. Suggest you google a little bit or maybe someone else here can provide more specific guidance.

It sounds like what you need is

!/Public
/

This will only sync the top-level Public folder (with all its contents) and ignore everything else.

Thomasz, thank you so much for that yes I am sure that would suffice, thanks ones again

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