[Box Backup] Exclude everything except one filetype?

Stefan Norlin boxbackup@fluffy.co.uk
Mon, 7 Aug 2006 15:16:40 +0200


>     nsf
> {
> Path = c:\lotus\domino\data
> AlwaysIncludeFilesRegex = *.(nsf|NSF)$
> ExcludeDir = c:\lotus\domino\data
> }
> 
> Problem is, it still stores all the files, even the ones that don't end
> with .nsf ... what am I missing?

Hi!

This should be clarified a couple of more times somewhere since
it is a very common question.

It should be "perl-style" regular expressions.

So you should write something like

AlwaysIncludeFilesRegex = .*\.(nsf|NSF)$

instead.

. - Any character
.* - Any character 0 or more times
\. - The "." literal

Stefan