Hi Chris, On Aug 05, Chris Wilson wrote: > On Sun, 5 Aug 2007, Andreas Putzo wrote: > > >Ah ok. I assumed something like this. Perhaps the comments in the > >generated bbackupd.conf should be improved then to be more clear on > >this. It can be terrible if one learns the hard way, that the backup > >system is not backing up all the files you was thinking it would. :) > > Yes, but that can happen to any backup system, that's why test restores > are important (nothing else will really reassure you).
Of course. That's why i noticed that something was missing in my backup. > >>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: > > > >I have several directives like this in my config. Since they are all > >subdirectories of 'home' i don't want to create different locations > >for each of them. > > Why not? Just a matter of personal preference. I want to cd down the tree as i would do on my local filesystem. > > >Using (2) would render the config file more complicated and > >error-prone. > > Indeed. > > >If the include/exclude logic can be improved to be aware of > >AlwaysIncluded subdirectories i would appreciate this. > > I wish it were so simple, but because AlwaysInclude*Regex can apply at any > point in the tree, it would mean that we always have to scan all the way > down the tree. So we'd need another directive like SkipDir(sRegex) to > completely exclude descending into a directory and any possibility of > files inside it being backed up. Mmh, true. I wasn't thinking about that because i was using a simple ExcludeDir/AlwaysIncludeDir directive without any regex in it. After all, i think the current possibilities to define backup locations are already powerful enough. It's just that i got fooled (dumb me :) by the comment # For example: # # ExcludeDir = /home/guest-user # ExcludeFilesRegex = \.(mp3|MP3)$ # AlwaysIncludeFile = /home/username/veryimportant.mp3 # # In general, Exclude excludes a file or directory, unless the # directory is explicitly mentioned in a AlwaysInclude directive. Perhaps it would be sufficient to be a little more precise on this, eg. that AlwaysIncludeFile = /home/guest-user/veryimportant.mp3 will not work in the above example. Cheers, Andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

