Help with regexp for file Windows Backup Specs

Hello! Please help to add regexp filter for source for example: s:\WindowsImageBackup\server2 .
I need to backup only file: s:\WindowsImageBackup\server2\Backup 2020-07-20 183021\BackupSpecs.xml .
As you can see after source folder followed the folder with date. In this folder there are many special folders and a file, which doesn’t be added to backup. And all files in “s:\WindowsImageBackup\server2\Backup 2020-07-20 183021” have to be excluded from backup.

How I can do this?

you can exclude any file, or directory, from any data source location.
tick the box next to it and a red X will appear. it’s therefore excluded. the directories/files with a green tick will be backed up
forgive me if i’m missing something.

I can’t do as you write because the name contains a date which changes every day. So I need help with regexp excludes.

1 Like

ah. use include expressions then. you’ll be able to just backup the .xml file

Thank you. But I don’t understand, how to use it. Could you write all solution, please?

My college helped me. May be some find it useful:
(s|S):\\WindowsImageBackup\\server2\\(?:(?!Backup [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{6}\\BackupSpecs.xml$|Backup [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{6}$|\\$)).+

Of course computer names must be changed before use (server2).