Paul writes:
> I haven't tested this, but I believe the order is to source the main config
> file and then source the config file for the individual host being backed up
That's correct.
> So you should be able to do something like this:
>
> $Conf{RsyncArgs} = [ @$Conf{RsyncArgs}, '--copy-links' ];
>
> Since you're dealing with Perl, you could probably create a file with a list
> of slow hosts, read that into a hash (say, %slow_hosts, since I don't like
> CamelCase)), and then you can say:
>
> $Conf{RsyncArgs} = [ @$RConf{RsyncArgs}, '--bwlimit=128' ] if defined
> $slow_hosts{$host};
Unfortunately this won't work for two reasons: when the config files
are parsed, the %Conf hash is empty (it is merged after each file is
parsed). Second, using perl code won't work with the CGI config
editor.
Craig
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/