-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Holger Parplies wrote: > Hi, > > Tino Schwarze wrote on 2009-11-24 23:40:13 +0100 [Re: [BackupPC-users] > __TOPDIR__ and $Conf{TopDir}]: >> PS: Maybe there should be a prominent note just at the $Config{TopDir} >> setting in config.pl? And a like to the wiki article? > > as far as that statement goes, you are correct. There should be, but there > isn't for older versions of BackupPC. Aside from that, pretty much all points > made in this thread are obsolete, as BackupPC 3.2.0beta0 fixes the issue. > Starting with this version, it should in fact be possible to change TopDir > just by setting $Conf{TopDir} (no, I haven't tried it out ...). > > You need to be aware of the fact, though, that BackupPC can't magically locate > config.pl through a setting inside the file itself. Older versions of BackupPC > put config.pl in $TopDir/conf/, and newer versions of BackupPC are backwards > compatible to this state. If that is how your config.pl is located, you've got > a chicken-and-egg problem, but that doesn't mean 3.2.0beta0 won't let you > change your storage location just by setting $Conf{TopDir} (see below). > FHS-compatible BackupPC installations (probably including just about all > packaged versions) put config.pl somewhere under /etc, which is obviously not > related to $TopDir, so these cases should be safe.
Not wanting to beat a dead horse... but isn't the usual method of dealing with this simply a command line parameter which would specify the location of the config file which would then specify the TopDir whose value is not used to access the config file ? ie, either the program uses it's hardcoded default value (or tries 3 or 4 values in a specific order that the package builder can customise if needed) OR the user will specify the full path of the config.pl file as a command line parameter at run-time... Sure, there are a lot of 'standalone' applications in backuppc, but if the user wants to use a non-default config.pl location, then they will know they need to specify it when calling those applications... Just my 2c -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAksOX08ACgkQGyoxogrTyiX/lgCcCxBEk1rIV0PMwhGyks421SiC D/IAoNYIbnpY2CUbkMyOrXUbPkPVspFH =odi+ -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ 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@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/