Sync only specific Folders - inverted ignore - fails

I am currently managing a 3-way synchronization setup involving three devices:

  • Device A: Linux Desktop
  • Device B: Linux Desktop
  • Device C: Android device running the Syncthing fork

The folder structure I am working with is as follows:

/event
│
├── /invitations
│   ├── guest_list.xlsx
│   ├── design.pdf
│   └── ...subfolders
│
├── /catering
│   ├── menu.pdf
│   ├── quotes.docx
│   └── ...subfolders
│
└── /logistics
    ├── venue_details.txt
    ├── schedule.docx
    └── ...subfolders
...more folders

Currently, Devices A and B sync all folders and files, while Device C should only sync the /logistics folder along with its subfolders and files.

I prefer not to separate the /logistics folder into a distinct sync configuration for the Android device, as I may want to add the /catering subfolder in the future without creating a third sync setup. I also wish to maintain the functionality of the 3-way sync.

To achieve this, I have attempted various ignore patterns on the Android device, including:

*
!logistics
!logistics
*
!/logistics
*
!logistics
!logistics/**
*

…and so on

However, despite these configurations, only the /logistics folder and its subfolders are syncing—none of the files are included. Additionally, I have noticed that files containing “logistics” in their names from unrelated folders are being synced, which is not desired.

Could someone help on how I can successfully configure this sync to meet my requirements?

Assuming that /event is the root folder, it should be enough to do:

!/logistics
*

Please remember that ignore patterns are read from top to bottom and the order matters. You may want to experiment with an unshared, local-only folder first and see how its local state changes depending on which ignore patterns you’ve applied.

1 Like

Strange. Now its working… even tho i had this exact ignore pattern before… Anyways. Thanks

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