AppData patterns and ignore ! syntax

The thread by HarrisonHJones (here) Proposal: Better management of ignore patterns got me thinking.

I’d like to sync a couple users’ Appdata folders. Specifically, their outlook, Firefox, and Chrome profiles. (I know Syncthing isn’t necessarily a backup, but dumping these to a Read Only folder would make it easy to clone new laptops for them when the old one goes out of service, without having to have theirs on-hand.

I still don’t fully understand ignore syntax.

Is there a good way to add the AppData folder, but ONLY back up folders included specifically? Something like:

-IGNORE ALL FOLDERS.

  • EXCEPT THIS ONE.
  • AND THIS ONE.

or more likely, given how it seems to process ignores, something like

-IGNORE ALL FOLDERS THAT AREN’T: THIS ONE, THIS ONE, or THIS ONE.

Ignore processing stops on the first rule matched.

!keepThisOne
!keepThatOne
// Ignore the rest
*
1 Like

Thank you, very, very much! = )

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