From 2bc83bf3094021b5a8f9ea79795dc8a6801648d0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 18 Apr 2010 12:55:03 +0200 Subject: [PATCH] Add exclude to test program --- bacula/src/plugins/fd/test-plugin-fd.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5