[Box Backup-dev] Bad regex in config file

Chris Wilson boxbackup-dev@fluffy.co.uk
Fri, 21 Sep 2007 19:02:19 +0100 (BST)


Hi Roy,

On Thu, 20 Sep 2007, Roy wrote:

> I tried to exclude a parent.lock file, because BoxBackup couldn't back it up.
>
> So I tried to exclude it, following the example:
>   ExcludeFilesRegex = *.(mp3|MP3)$
> and changed it to:
>   ExcludeFilesRegex = *.(lock)$
> or
>    ExcludeFilesRegex = *.lock$
>
> But then I got the following errors (Windows XP client):
> WARNING: Exception thrown: CommonException(BadRegularExpression) at 
> ExcludeList.cpp(200)
> ERROR: Failed to configure location 'Application Data' path 
> 'C:\<path>\Application Data': Common BadRegularExpression: please check for 
> previous errors
>
> When I changed the regex to .(lock)$ it worked (removed the *  in front of 
> it). So I think the example is wrong in bbackupd.conf, or is it something I'm 
> missing?

The example is wrong, thanks for pointing it out! I've fixed it in the 
trunk. I'll also add some code toshow which regular expression failed, and 
to give more details why.

Cheers, Chris.
--
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |