Although it wasn't intended for cumulative excludes, and assuming you are using rsync/rsyncd, you could use $Conf{RsyncArgsExtra} to specify excludes in the main config.pl file and leave that setting empty in the per-host configuration.
Alternatively, as noted in the comments for that parameter, you could also do something like this: $Conf{RsyncArgsExtra} = [ '--exclude-from=$confDir/allhosts.exclude', '--exclude-from=$confDir/pc/$host.exclude', ]; (note: I haven't tested this.) That would allow you to put host-specific excludes in your config directory (eg, /etc/BackupPC/$host.exclude) and global excludes in /etc/BackupPC//allhosts.exclude. Craig On Thu, Jan 17, 2019 at 11:01 AM Michael Stowe < michael.st...@member.mensa.org> wrote: > On 2019-01-17 09:37, Jan Stransky wrote: > > Hi, sorry for rising another exclude/include thread, but… Does globally > defined exclusion rules apply also when there is host-specific one? For > example: in configure.pl, for share ‘*’ I have excluded ‘*.tmp’ in host.pl > I have share ‘/home’ which has excluded ‘/*/.ssh’ However, the exclusion of > the *.tmp does not apply. Feature, or bug? Cheers, Jan > > Short answer: no, it's a complete override > > Longer answer: it's possible to put together some perl to make this work, > but it does not do so out-of-the box. I suspect the reason would be the > baffling experience of trying to figure out where combined sets of > exclusions are coming from, or because this is how every other setting > works, it would be a bit weird to diverge for one or two variables. > _______________________________________________ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ >
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/