From: Kern Sibbald Date: Sun, 18 Apr 2010 10:55:03 +0000 (+0200) Subject: Add exclude to test program X-Git-Tag: Release-5.2.1~1451 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2bc83bf3094021b5a8f9ea79795dc8a6801648d0;p=bacula%2Fbacula Add exclude to test program --- diff --git a/bacula/src/plugins/fd/test-plugin-fd.c b/bacula/src/plugins/fd/test-plugin-fd.c index 13ccd501fc..ea8c5d8f54 100644 --- a/bacula/src/plugins/fd/test-plugin-fd.c +++ b/bacula/src/plugins/fd/test-plugin-fd.c @@ -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;