From 24a7a4f2f4f0214835397590840bd1889620c7b4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 20 Feb 2007 13:32:20 +0000 Subject: [PATCH] ebl for people like me wo want's generate include/exclude with before job commands git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4220 91ce42f0-d328-0410-95d8-f526ca767f89 --- ...ob_can_generate_include_exclude_list.patch | 46 +++++++++++++++++++ ...b_can_generate_include_exclude_list.readme | 16 +++++++ 2 files changed, 62 insertions(+) create mode 100644 bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch create mode 100644 bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.readme diff --git a/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch b/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch new file mode 100644 index 0000000000..5e1d3d6239 --- /dev/null +++ b/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch @@ -0,0 +1,46 @@ +--- bacula/src/dird/backup.c 2007-02-20 14:28:55.000000000 +0100 ++++ bacula.org/src/dird/backup.c 2007-02-20 14:27:54.000000000 +0100 +@@ -171,18 +171,6 @@ + set_jcr_job_status(jcr, JS_Running); + fd = jcr->file_bsock; + +- if (!send_include_list(jcr)) { +- goto bail_out; +- } +- +- if (!send_exclude_list(jcr)) { +- goto bail_out; +- } +- +- if (!send_level_command(jcr)) { +- goto bail_out; +- } +- + /* + * send Storage daemon address to the File daemon + */ +@@ -205,10 +193,24 @@ + goto bail_out; + } + ++ /* setup job */ ++ ++ if (!send_level_command(jcr)) { ++ goto bail_out; ++ } ++ + if (!send_runscripts_commands(jcr)) { + goto bail_out; + } + ++ if (!send_include_list(jcr)) { ++ goto bail_out; ++ } ++ ++ if (!send_exclude_list(jcr)) { ++ goto bail_out; ++ } ++ + /* + * We re-update the job start record so that the start + * time is set after the run before job. This avoids diff --git a/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.readme b/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.readme new file mode 100644 index 0000000000..fae53c16b5 --- /dev/null +++ b/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.readme @@ -0,0 +1,16 @@ +From: Eric Bollengier + +This patch allow you to create include/exclude file list +with ClientRunBeforeJob command. + +Job { +... + ClientRunBeforeJob = "gen_exclude.pl /tmp/lst.exc" +} + +FileSet { +... + Include { + File="\\