I have a syncthing folder DCIM and Pictures. I want to sync them between devices.
Peer A - android
Peer B - debian
I need to sync the contents of ~/DCIM on A to ~/Pictures/ on peer B.
E.g if ~/DCIM has Camera, then on peer B it should be in ~/Pictures/Camera/
At the same time, I want to sync the contents of ~/Pictures between A and B.
The problem is, since ~/DCIM folders live inside of it, I need to exclude them from syncing from ~/Pictures/ e.g Camera. I could not figure out a way to do it and it causes me trouble when new device was added.
Please note that directory patterns ending with a slash some/directory/ matches the content of the directory, but not the directory itself. If you want the pattern to match the directory and its content, make sure it does not have a / at the end of the pattern.
I tried including the ignore patterns Pictures or Pictures/ or DCIM and DCIM/ matching with or without case sensitivity in all the locations – one at a time and all at once.
The result is still the same. Pictures subdirectories go to DCIM, and if I delete them inside DCIM, they get deleted in Pictures as well!
I think what is posted in #1 can be safely omitted as previous post was meant to be comprehensive. I didn’t want to create a new topic to flood the forum.
Ouch… I think you are really making it hard/impossible for yourself. This is definitely a non-standard (and maybe unsupported) scenario.
IIUC, on device A you are sharing “~/DCIM”, which contains “Camera”. That is the only content in “~/DCIM” you are interested in, I think.
I recommend that you do NOT share “~/DCIM”, but instead share “~/DCIM/Camera”. And on device B you use directory “~/Pictures/Camera” for this folder. I think this will spare you a lot of hazzle. Good luck!