BackupPC-users

Re: [BackupPC-users] appending to the Excludes hash

2017-05-04 16:33:23
Subject: Re: [BackupPC-users] appending to the Excludes hash
From: Paul Fox <pgf AT foxharp.boston.ma DOT us>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 04 May 2017 16:32:31 -0400
Bowie Bailey wrote:
 > On 5/4/2017 10:35 AM, Paul Fox wrote:
 > >
 > > is there a nice perl way to do something like this?  syntax
 > > intentionally left vague:
 > >
 > >      $Conf{BackupFilesExclude} += { ...  '/home' ....}
 > >
 > > i'd like to be able to append to either the '*' catchall array
 > > or a share-specific array.
 > 
 > Off the top of my head, you could do it like this:
 > 
 > push @{$Conf{BackupFilesExclude}{'*'}}, '/dir1', '/dir2', '/dir3';
 > push @{$Conf{BackupFilesExclude}{'/'}}, '/dir4', '/dir5', '/dir6';

thanks!  syntax was perfect.

paul
=----------------------
paul fox, pgf AT foxharp.boston.ma DOT us (arlington, ma, where it's 54.9 
degrees)


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/


ADSM.ORG Privacy and Data Security by https://kimlaw.us