]> git.sur5r.net Git - bacula/bacula/commitdiff
Add exclude to test program
authorKern Sibbald <kern@sibbald.com>
Sun, 18 Apr 2010 10:55:03 +0000 (12:55 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:13 +0000 (16:53 +0200)
bacula/src/plugins/fd/test-plugin-fd.c

index 13ccd501fc590cec9cd4061ca595443c1bb3ac6b..ea8c5d8f54642a0386e9ba479f1b16c41f7c3682 100644 (file)
@@ -228,6 +228,11 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
    case bEventStartRestoreJob:
    case bEventEndRestoreJob:
       break;
+   /* End of Dir FileSet commands, now we can add excludes */
+   case bEventEndFileSet:
+      bfuncs->AddWildToInclude(ctx, "*.c", ' ');
+      bfuncs->AddIncludeOptions(ctx, "ei");   /* exclude, ignore case */
+      break;
    case bEventStartBackupJob:
       bfuncs->AddExclude(ctx, "/home/kern/bacula/regress/README");
       break;