On Thu, Aug 28, 2014 at 9:59 AM,  <backu...@kosowsky.org> wrote:
>>
> While it's not clear to me what you are actually trying to do, there
> is a *lot* that you can do short of patching the Rsync.pm file.
>
> - You can have separate config files per host
> - You can put arbitrary executable Perl code within any host config file that
>   is evaluated at run time which can be used to conditionally set
>   variables like RsyncShareName at run time.

Note that if you do add run-time perl code in the configs you'll
probably lose the ability to use the web 'edit config' interface.
Also, you can set the IP targets independently from the hostname by
using ClientNameAlias in the per-host configs - you don't really need
the settings in the system /etc/hosts file.   If I needed to do
something like that I would probably set up one configuration using
the web interface's per-host 'Edit Confilg', then for a small number
of variations add the others using the 'newhost=oldhost' syntax in
'Edit Hosts' followed by changing just the ClientNameAlias and the
RsyncShareName settings, or for a large number of targets, write
something to generate the appropriate per-host config files using the
first as a template.

-- 
   Les Mikesell
     lesmikes...@gmail.com

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

Reply via email to