You are here

Regex rules

1 post / 0 new
superuser
Offline
Last seen: 8 months 3 weeks ago
Joined: 2023-07-01 11:30
Regex rules

Hi. Spent a few hours trying to make rules to exclude folders when backing up and syncing. It seemed simple, but I can't figure out how it works.
Example, I'm backing up folder C:\\Folder\, it has subfolders Subfolder1, Subfolder2, Subfolder3. I want to exclude Subfolder2 and everything in it. I write a regex rule 'Exclude folder':
.*\\Subfolder2\\.*
But it doesn't work, the backup is empty.
I don't want to use absolute paths because tomorrow (conventionally) drive C will become drive D and I won't need to at least rewrite the exclusion rules.

Simple rule working, but Subfolder2 and all subfolders in it backuped (without files), how prevent this?