I've been reading some of the posts in this forum about configuring exclusions on Windows File System but nothing has fit the scenario I have so I'm wondering if maybe someone can point me in the right direction.
I have a Windows server that has a folder structure D:\Program Files\<App Name>\var\lib\<index name>\db as a base structure. Under the db folder there are other sub folders that change names (db_XXX and hot_db_XXX where XXX varies and increments as new folders are created). I need to exclude the hot_db_XXX folders from my backups. This structure is duplicated for multiple <index names>. I tried this exclusion "D:\Program Files\<App Name>\var\lib\*\db\hot*" (without the quotes) but this doesn't work.
Can anyone tell me how I can write this exclusion?
d:\Program Files\<App Name>\var\lib\**\db\hot*
try the double ** - it is my understand it means anywhere it finds this
example I want to exclude all sql databases and log files
so if you use the ** it should be any folder under lib where it then finds a db dir with a file that starts with hot.
if you think there are no more files that start with hot you could try **\hot* ( but I have not ever tried that)
Ok so I can exclude files using the above method. Now I've set up a dataset that I only want to include certain folders that all start with the same string and then have an incrementing number after (e.g. file0001, file0002,...). I tried the following but neither of these work:
How can I wildcard on a folder name?
this is suppose to be in any folder the file.*
careful as it will exclude all
this would only work recursivly under folder2
as always test and verify it works as you expect.
Not sure this will do what I want. This looks like you're looking for a file named file.*. Filexxxx isn't just a file it's an actual folder. All of the applicable folders I want to backup exist in D:/folder/. Basically I want to backup all folders with the name Filexxxx.