Just following up on this because I got a very useful reply from Holger which explained that a variable can be used to hold a list of excludes, but noted that doing so will break the ability to use the GUI. If the GUI is used to edit a host's config after manually setting a variable all changes will be overwritten.
From Holger:
You simply create a variable in the host (or even global) config file ...
[code]
my @common_excludes = ('*access_log*', '.apdisk', '.cache');
[/code]
and then reference that multiple times:
[code]
$Conf {BackupFilesExclude} = {
'/home' => [ @common_excludes ],
'/var' => [ @common_excludes, '/lib/mysql' ],
'/usr' => [ @common_excludes ],
'/boot' => [ @common_excludes ],
'/data' => [ @common_excludes ],
};
[/code]
or
[code]
$Conf {BackupFilesExclude} = {
'/var' => [ @common_excludes, '/lib/mysql' ],
'/example' => [ ], # no excludes here
'*' => [ @common_excludes ],
};
[/code]
Thanks Holger for your help! I've implemented it and it saves me much messiness in my config files. 8)