BackupPC-users

Re: [BackupPC-users] __TOPDIR__ and $Conf{TopDir}

2009-11-25 09:48:48
Subject: Re: [BackupPC-users] __TOPDIR__ and $Conf{TopDir}
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 25 Nov 2009 08:44:02 -0600
Tino Schwarze wrote:
> On Tue, Nov 24, 2009 at 05:32:14PM -0600, Les Mikesell wrote:
> 
>>>> I agree - almost every "newbie" that picks up BackupPC makes this
>>>> mistake - the more experienced you are with old-school config files
>>>> the MORE likely you are to assume changing this is all you need to do.
>>>>  A note in the docs and/or a link to the "how to change your TOP DIR"
>>>> page would fix a huge percentage of installation failures.
>>>>
>>>> Or just fixing it so changing the config file IS all you have to do :)
>>> If they need to be the same, why do we need the configuration option in the
>>> first place?
>> __TOPDIR__ is a token that gets substituted/replaced during an initial 
>> install (a step that deb/rpm packagers have already done).  One of the 
>> places that the actual value is substituted is the value of 
>> $Conf{TopDir} in the config file.  But that's not the only place and 
>> that's why you can't change it later.
> 
> Well, then we could simply move it out of config.pl into the code which
> reads config.pl, e.g. have it preloaded into $Config...
> 

The installer doing the substitution also establishes and moves the code to its 
runtime location - which the packagers have put elsewhere.  It is approximately 
the equivalent of wanting to change 'configure' options of some other source 
package after you've installed a packaged binary.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/