[Box Backup-dev] Bad regex in config file
Jon Dye
boxbackup-dev@fluffy.co.uk
Thu, 20 Sep 2007 11:20:41 +0100
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig52AA89E6D3320E3E525FCF68
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Roy wrote:
> I tried to exclude a parent.lock file, because BoxBackup couldn't back
> it up.
>=20
> So I tried to exclude it, following the example:
> ExcludeFilesRegex =3D *.(mp3|MP3)$
> and changed it to:
> ExcludeFilesRegex =3D *.(lock)$
> or
> ExcludeFilesRegex =3D *.lock$
>=20
> 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
>=20
> 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?
I wondered if they were wrong too. The examples look like glob patterns
rather than regular expressions. The glob pattern "*.(mp3|MP3)" is
equivalent to the regex ".*\.(mp3|MP3)".
=2E mean match an character
* means match the preceding character 0 or more times
\. means a literal .
I've only just started using boxbackup and haven't yet managed to work
out if the example is wrong or not, it would be nice to know for certain.=
I'm also wondering whether it matches the whole name or if a partial
match is sufficient, e.g.
does ".bar" match foobar as well as fbar?
JD
--=20
"Needle goes up and into the brain... and death."
- Eddie Izzard
--------------enig52AA89E6D3320E3E525FCF68
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG8kl9IvTX5uXVe6wRAsHHAKClWuclPKuPhkMyTd/7pP6H1ZNg/QCfd5gS
rbu0O0T8Oxx+lo0/Zy/WhRw=
=bmBL
-----END PGP SIGNATURE-----
--------------enig52AA89E6D3320E3E525FCF68--