BackupPC-users

Re: [BackupPC-users] include directive in config.pl

2009-06-11 13:12:24
Subject: Re: [BackupPC-users] include directive in config.pl
From: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 11 Jun 2009 12:33:32 -0400
Matthias Meyer wrote at about 18:00:22 +0200 on Thursday, June 11, 2009:
 > Hi,
 > 
 > Unfortunately I am not a perl programmer.
 > Therefore my, maybee stupid, question ;-)
 > 
 > Is it possible to include a specification within the
 > $Conf{BackupFilesExclude}?
 > 
 > Something like:
 > $Conf{BackupFilesExclude} = {
 >   'WINDOWS' => [
 >     '/Downloaded Program Files',
 >     '/Offline Web Pages',
 >     '/Temp',
 >     '/proc',
 >     '/System32/LogFiles/WMI/RtBackup'
 >   ],
 >   '*' => [
 >     'pagefile.sys',
 >     'hiberfil.sys',
 >     '/System Volume Information',
 >     '/RECYCLER',
 >     '/$Recycle.Bin',
 >     '/$RECYCLE.BIN',
 >     '/MSOCache',
 >     '/proc',
 >     '/Windows',
 > #include VistaJunctions_english
 > #include VistaJunctions_german
 >   ]
 > };
 >   

Well, it's not C so you wouldn't expect to be able to use C
syntax. But the config.pl is an executable perl file so you can use
standard perl techniques to read in the contents of a variable in
another file (for example using the 'do' construction) and then use
standard perl hash & array constructions to merge the values from the
file you read in with the values you specify in the config file. Just
check out some of the perl tutorials online -- if you are messing with
perl code, I highly recommend you learn a little perl.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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>