Never used this functionality but it seems that you migth simply want something like

Include {
   Options {
       IgnoreCase = yes
       WildFile = "*outlook*"
       WildDir = "*outlook*"
       }
   Options {
       Exclude = yes
       RegexFile = ".*"
    }
    #I'd still go for separate filesets for windows and unices
    File = [a-z]:/
    File = /
}

MK

On 20.11.2023 23:26, Máté Zsólya wrote:
Hi!
I'm trying to create fileset where I get back every director, and file what its contains where tha path include the string "outlook". The folder with the files can be in any depth with any caracter pre and post of the string "outlook".

I've tried to utilize these 2 examples from the documentation:
FileSet {
  Name = "Full Set"
  Include {
     Options {
        wildfile = "*.Z"
        wildfile = "*.gz"
     }
     Options {
        Exclude = yes
        RegexFile = ".*"
     }
     File = /myfile
  }
}

AND

FileSet {
  Name = "AllPictures"

  Include {

    File  = "C:/Documents and Settings"

    Options {
      signature = SHA1
      verify = s1
      IgnoreCase = yes

      # Include all users' directories so we reach the inner ones.  Unlike a       # WildDir pattern ending in *, this RegExDir only matches the top-level
      # directories and not any inner ones.
      RegExDir = "^C:/Documents and Settings/[^/]+$"

      # Ditto all users' My Documents directories.
      WildDir = "C:/Documents and Settings/*/My Documents"

      # Ditto all users' My Documents/My Pictures directories.
      WildDir = "C:/Documents and Settings/*/My Documents/My Pictures"

      # Include the contents of the My Documents/My Pictures directories and
      # any subdirectories.
      Wild = "C:/Documents and Settings/*/My Documents/My Pictures/*"
    }

    Options {
      Exclude = yes
      IgnoreCase = yes

      # Exclude everything else, in particular any files at the top level and
      # any other directories or files in the users' directories.
      Wild = "C:/Documents and Settings/*"
    }
  }
}

Sadly I had partial success, the files and folders are backed up correctly,  but all other directory backed up empty as well, and i don't need those (specially, because I want to use the root directory [C:, D:, /, etc.] as start point of this search)
I've tried to use regex exclude, something like this:
^([^o]|(o[^u])|(ou[^t])|(out[^l])|(outl[^o])|(outlo[^o])|(outloo[^k]))*($|(o($|(u($|t($|l($|k$)))))))
but this way it is case sensitive, and the (?-i) flag not working in POSIX flavored REGEX. (sadly I cannot use the (?!{someRegexHere}) expression, because thats also not supported on POSIX)

Can somebody point me into the right direction.
Thanks very much.
Br, Mate
--
You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/44bb258a-a472-472f-be70-721852461740n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/44bb258a-a472-472f-be70-721852461740n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/b30581bf-cf24-4ba0-8f9c-4ac957c2df83%40gmail.com.

Reply via email to