BackupPC-users

Re: [BackupPC-users] Feature Request

2014-08-28 14:54:38
Subject: Re: [BackupPC-users] Feature Request
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 28 Aug 2014 13:53:04 -0500
On Thu, Aug 28, 2014 at 12:18 PM, Andreas Schnederle-Wagner -
Futureweb.at <schnederle AT futureweb DOT at> wrote:
>
>> Andreas Schnederle-Wagner - Futureweb.at wrote at about 15:41:11 +0000 on 
>> Thursday, August 28, 2014:
>>  > The Reason we did this ist o avoid custom Config Files for each Host.
>>  > We only need to create the Host with name 'ctDIR8' and everything works 
>> like a charm ... so only the"hosts" file needs tob e changed when 
>> adding/removing Hosts ...
>>  >
>> You do not need custom Config Files for each host. You could put Perl code 
>> in config.pl if you want... and putting custom code in a config file is IMHO 
>> a much better option than patching a perl module.
>
> But as far as I see I cannot access the $HOST Variable within config.pl to be 
> used in RsyncShareName - or do I overlook something?
>
> $Conf{RsyncShareName} = [
>   '/tmp'                                //this should be $HOST 
> (Case-Sensitive)
> ];
>

Aren't $client and $host set by the time you need them (as documented
to be used in $Conf(RsyncArgs}, $conf{DumpPreUserCmd}, etc.)?

-- 
   Les Mikesell
     lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>