From: Craig B. <cba...@us...> - 2007-02-06 06:56:36
|
Rob writes: > I run multiple instances of BackupPC, and recently attempted upgrading t= o > 3.0. >=20 > I run the different instances as different users, and out of different > $TopDir directories. I'm unable to start the deamon for BackupPC2 (my 2= nd > instance) >=20 > So it seems to me like the $Conf{ConfDir} variable is getting ignored i= n the > conf.pl. That's correct: the one piece of information that is stored separately from the config.pl file is that path to the config file itself. That's how BackupPC finds the config file. As you discovered, it is stored in lib/BackupPC/Lib.pm. > The BackupPC daemon fails becuase of a UID error- that's becuase it kee= ps > reading /etc/BackupPC/conf.pl and not /etc/BackupPC2/conf.pl > (i know this because i did an strace) >=20 > So i decided to trace down where this variable is getting picked up. I > noticed in the Lib.pm code, i see that the confdir is referenced as > "$confDir" and not as "$ConfDir" >=20 > I don't really know perl at all, but does this seem right? It's correct. $confDir is a function argument. > When i corrected the case on these variables, my UID problem didn't go a= way. > When i changed the (hardcoded?) /etc/BackupPC value to my intended > /etc/BackupPC2 everything worked fine. That's right: you have now correctly pointed your second installation at the second config.pl file. With FHS (the default in 3.0.0) you need to use the --config-dir option to configure.pl to explicitly place the config dir on the second installation in a new place. You manually made the right change. Craig |