severity 435860 wishlist thanks On Aug 03, Chris Wilson wrote: > On Fri, 3 Aug 2007, Reinhard Tartler wrote: > >Andreas Putzo <[EMAIL PROTECTED]> 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.
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. :) > 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. 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. Using (2) would render the config file more complicated and error-prone. If the include/exclude logic can be improved to be aware of AlwaysIncluded subdirectories i would appreciate this. Thanks, Andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]