[Box Backup] Re: Bug#435860: boxbackup-client: AlwaysInclude[File|Dir] is not working as expected

Chris Wilson boxbackup@fluffy.co.uk
Fri, 3 Aug 2007 21:44:11 +0100 (BST)


Hi Andreas,

On Fri, 3 Aug 2007, Reinhard Tartler wrote:

> Andreas Putzo <andreas@putzo.net> writes:
>
>> from the config file:
>>
>> BackupLocations
>> {
>> 	home
>> 		{
>>             Path = /home/andreas
>>             ExcludeDir = /home/andreas/chroot
>>             AlwaysIncludeDir = /home/andreas/chroot/sid/home/andreas
>> 		}
>>
>> }
>>
>> I expected that /home/andreas/chroot/sid/home/andreas would be
>> included in the backup but this is not the case.
>> boxbackup is running several days now so it should be there, even in
>> lazy mode.

Unfortunately not. If you Exclude a directory, then Box Backup will never 
scan it or its subdirectories, and will never make it down the tree to 
/home/andreas/chroot/sid/home/andreas which should be backed up.

At the moment, the workarounds are to either (1) create a new location, or 
(2) exclude all files and directories under the excluded directory, except 
the ones on the path to the AlwaysIncluded directory, like so:

ExcludeFilesRegex = /home/andreas/chroot/.*
ExcludeDirsRegex = /home/andreas/chroot/.*
AlwaysIncludeDir = /home/andreas/chroot/sid
AlwaysIncludeDir = /home/andreas/chroot/sid/home
AlwaysIncludeDir = /home/andreas/chroot/sid/home/andreas
AlwaysIncludeFilesRegex = /home/andreas/chroot/sid/home/andreas/.*
AlwaysIncludeDirsRegex = /home/andreas/chroot/sid/home/andreas/.*

I'm sorry that this is not very convenient. I would like to change the 
include/exclude logic in a subsequent release to make it easier to specify 
configurations like yours.

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 |