|
From: Craig B. <cba...@us...> - 2005-09-12 00:13:41
|
Dan D Niles writes:
> Les Mikesell writes:
> >
> > I haven't peeked at the code, but I'd guess that it is checking
> > that the programs exist so it can give a reasonable error message
> > at startup time instead of waiting until some backup run needs
> > it (remember that you can override $Conf{XferMethod} in a per-pc
> > config file while inheriting $Conf{SmbClientPath} from the main
> > file). You can either change the $Conf{SmbClientPath} entry to
> > something like /bin/false or make a dummy executable file for
> > /usr/bin/smbclient.
>
> It is only checking it because the main config.pl line (by default)
> has:
>
> $Conf{XferMethod} = 'smb';
>
> Change this to 'rsync' and it will stop chekcing for it. Better yet,
> comment the line out in the main config.pl so that it must be defined
> in the per host config.pl.
Actually, Les is right: BackupPC checks most of the executable paths
in config.pl when it first starts to avoid errors later.
So if smbclient doesn't exist, the correct fix is to set:
$Conf{SmbClientPath} = undef;
Craig
|