Re: [BackupPC-users] Feature Request
2014-08-28 12:15:24
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 ...
>
Please DO NOT top-post -- it makes reading threads very difficult.
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.
>
> Andreas Schnederle-Wagner
> Futureweb OG
> Innsbrucker Str. 4
> 6380 St. Johann
>
> schnederle AT futureweb DOT at
> www.futureweb.at
> www.ortsinfo.at
>
> Fon: +43 (0) 5352 65335-0
> Fax: +43 (0) 5352 65335-777
> Gratis über Skype anrufen | Skype-ID: futureweb
>
> -----Ursprüngliche Nachricht-----
> Von: backuppc AT kosowsky DOT org [mailto:backuppc AT kosowsky DOT org]
> Gesendet: Donnerstag, 28. August 2014 17:00
> An: General list for user discussion, questions and support
> Betreff: Re: [BackupPC-users] Feature Request
>
> Andreas Schnederle-Wagner - Futureweb.at wrote at about 14:31:49 +0000 on
> Thursday, August 28, 2014:
> > Hello,
> >
> >
> > is it possible to have variable substitution at run-time for
> > “RsyncShareName“?
> >
> >
> > Following Scenario:
> >
> > - Server Directory Structure
> >
> > o /ctDIR1
> >
> > o /ctDIR2
> >
> > o /ctDIR3
> >
> > o …
> >
> > - Within /etc/hosts we have:
> >
> > o *IP-1* ctdir1
> >
> > o *IP-1* ctdir2
> >
> > o *IP-1* ctdir3
> >
> > o *IP-2* ctdir4
> >
> > o *IP-2* ctdir5
> >
> > o *IP-3* ctdir6
> >
> >
> > Hosts within BackupPC: ctDIR1, ctDIR2, ctDIR3, …
>
> It's not clear to me what are you trying to do?
> >
> > Since no variable substitution is possible at the Moment (and Hosts
> > within BackupPC ignore Case Sensitivity …) this was only possible by
> > patching the Rsync.pm File …
>
> 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.
> - Several of the variables (e.g., DumpPreUserCmd) can even take raw perl
> code as an argument that is executed when the corresponding routine
> is run.
>
> In all I have been able to do some really funky things in my config files by
> inserting my own Perl code to make the configuration do what I want...
>
> So long as version 4.x still uses a similar structure for the config file, I
> would imagine that one will still have plenty of flexibility and power to
> allow for run-time type configuration capabilities.
>
>
> > As BackupPC 4 will use C-compiled Rsync it’s not that easy anymore to
> > get this Patch into …
>
> I would try to avoid a patch or Rsync.pm even in 3.x
>
> >
> > So I hope it will be possible to have Variables within “RsyncShareName“
> > (and have $HOST be Case-Sensitive for this Case ;-))
> >
> >
> > Thank you
> >
> > Andreas Schnederle-Wagner
> >
> >
> >
> > Andreas Schnederle-Wagner
> >
> > Futureweb OG
> >
> > Innsbrucker Str. 4
> >
> > 6380 St. Johann
> >
> >
> > [1]schnederle AT futureweb DOT at
> >
> > [2]www.futureweb.at
> >
> > [3]www.ortsinfo.at
> >
> >
> > Fon: +43 (0) 5352 65335-0
> >
> > Fax: +43 (0) 5352 65335-777
> >
> > Gratis über Skype anrufen | Skype-ID: futureweb
> >
> > References
> >
> > 1. mailto:schnederle AT futureweb DOT at
> > 2. http://www.futureweb.at/
> > 3. http://www.ortsinfo.at/
> >
> ------------------------------------------------------------------------------
> > 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/
>
> ------------------------------------------------------------------------------
> 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/
> ------------------------------------------------------------------------------
> 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/
------------------------------------------------------------------------------
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/
|
|
|