Bacula-users

[Bacula-users] Backing up only files with *foo* in the name?

2011-07-07 06:43:05
Subject: [Bacula-users] Backing up only files with *foo* in the name?
From: dobbin <bacula-forum AT backupcentral DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 07 Jul 2011 03:40:23 -0700
On 07/06/11 10:08, dobbin wrote:
Hello there, we've got one particular server backing up to a slightly
older debian server running bacula 2.44.

There's way too much stuff on the server to backup but the only
important files are ones with *foo* in the filename

I want to backup every file in D:/media and all of it's
subdirectories (of which there are many) with *foo* in the name.

I'm having a bugger of a time figuring out the syntax, can anyone
point me in the right direction?
#############################

This is probably a good case for piping your Fileset from a simple
script (which probably needn't be much more than a 'find / -iname \*foo\*').

Oh, and you should probably use the 'ignore fileset changes' option. 

###############################

that would be a good idea, except it's a windows server and I'm phobic about 
bat files these days. Anyway, I think I got it


 FileSet {
   Name = "servername Full Set"
   Include {
     Options {
       compression = GZIP
       signature = MD5
       WildFile  = "*foo*"
     }
     Options {
        Exclude  = yes
        WildFile = "*"
      }
        file = d:/
   }
 }

it makes sense if you read it from bottom to top. 
Look in D:/
Exclude everything
Include *foo*

it works fine on a test of a single directory, I'm just running a larger test, 
fingers crossed

+----------------------------------------------------------------------
|This was sent by tibus.support AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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>