From: Jeffrey J. K. <bac...@ko...> - 2008-12-02 22:41:12
|
Just as an FYI, it is possible to use perl code within config files so that you can use a single config file yet still customize configurations by pc (or groups of pc's) without having to duplicate changes across multiple relatively similar config files each time you change a parameter. For example, I have a number of windows machines and one linux server. For the windows machines, I use a single config file in /etc/BackupPC/pc and then create links to it for each of my windows machines. I then use perl conditional statements to make some configurations unique by pc (or group of pc's). The trick is that $ARGV[0] is the name of the config file (or link) called and thus can be used to determine the machine. Personally, I find this trick very helpful... |