[Box Backup] ExcludeDir/AlwaysIncludeDir does not work
Mon, 22 Nov 2004 21:08:28 +0100
> A program logic thing which isn't caught, but probably should be.
> The problem is that /var/www/dir1 has already been excluded, so isn't
> scanned, so it doesn't get anywhere near /var/www/dir1/html/webalizer to
> include it. You could use Regexes to exclude things in such a way that
> /var/www/dir1/html gets scanned.
Thank you both Ben und Nigel for the answers.
By the way I run webalizer only once a day ;-)
Without excluding the files and every single other directory in
/var/www/dir1 I only see a way with negative lookaheads, but they don't
Path = /var/www
ExcludeDirsRegex = /var/www/dir1(?!/html/webalizer)
ExcludeDir = /var/www/dir2/files
ExcludeDir = /var/www/dir3/files
Nov 22 20:25:45 gate bbackupd: Starting daemon (config:
/etc/box/bbackupd.conf) (version 0.08)
Nov 22 20:25:46 gate bbackupd: Beginning scan of local files
Nov 22 20:25:46 gate bbackupd: Opening connection to server...
Nov 22 20:25:46 gate bbackupd: Connection made, login successful
Nov 22 20:25:46 gate bbackupd: Exception caught (1/31), reset state
and waiting to retry...
Excluding all directories in /var/www/dir1 and /var/www/dir1/html other than
html/webalizer seems more unreliable to me than adding a new backup set only
for the webalizer files, but my regex skills are ahhh... limited ;-)