Filters for .git and Release/Debug directories

Hi. I’m trying to exclude some folders I don’t need to backup, specifically:

.git
.vs
Release
Debug

I want to create exclude filters that are case sensitive but can’t figure out how. I started with .git and got stuck. I’ve been testing with test-filters and it always includes .git.

Also in the GUI is there any way to enter multiple filters at once? I see people post long lists of them here which kind of implies they probably aren’t entering them one at a time for every backup.

To answer my own question, these regexes work:

-[.*\\\.git\\$]
-[.*\\Debug\\$]
-[.*\\Release\\$]
-[.*\\\.vs\\$]

The Debug and Release directory filters are potentially a bit dangerous if you use directories named those things for anything else. The match is case sensitive so it’s a little less likely.

Thanks for following up with your solution!

1 Like