Bacula-users

[Bacula-users] handy script to show FileSets

2012-10-26 12:22:19
Subject: [Bacula-users] handy script to show FileSets
From: Joseph Spenner <joseph85750 AT yahoo DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 26 Oct 2012 09:19:40 -0700 (PDT)
In case anyone finds this useful, I wrote this to quickly show all the FileSets:

-----

#!/usr/bin/perl

@fileSetCommand=`echo "show fileset" | bconsole |grep FileSet`;

foreach $line (@fileSetCommand) {
        $line =~ m/\=(.*)/;
        $fileSet=$1;
        push (@fileSets, $fileSet);
        }

foreach $line (@fileSets) {
        @thisSet=`echo "show fileset=\\\"$line\\\"" | bconsole`;
        print "\n==============\n";
        foreach $line (@thisSet) {
                if ($line =~ m/ I | E |^FileSet/) {
                        $line =~ s/name\=//g;
                        print $line;
                        }
                }
        }

-----
 
______________________________________________________________________
If life gives you lemons, keep them-- because hey.. free lemons.
"♥ Sticker" fixer:  http://microflush.org/stuff/stickers/heartFix.html

------------------------------------------------------------------------------
The Windows 8 Center 
In partnership with Sourceforge
Your idea - your app - 30 days. Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>