From: Kern Sibbald Date: Sun, 18 Apr 2010 10:55:03 +0000 (+0200) Subject: Add exclude to test program X-Git-Tag: Release-7.0.0~1916 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a892b0802f217db13e9b7b84d0ebc1bbbd058f9;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;