File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
templates/bareos-dir/jobdefs Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ bareos_jobdefs:
150150 type: JOB_TYPE # optional, defaults to 'Backup'
151151 max_concurrent_jobs: 42 # optional, defaults to '50'
152152 allow_mixed_priority: 'yes' # optional
153+ client_run_before_job: "/etc/init.d/grafana-server stop" # optional
154+ client_run_after_job: "/etc/init.d/grafana-server start" # optional
153155```
154156
155157` bareos_jobs ` : List of jobs in following format:
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ Keep the legacy defaults when the template is used to define JobDefs resources
1919{% if item .client is defined %}
2020 Client = {{ item.client }}
2121{% endif %}
22+ {% if item .client_run_after_job is defined %}
23+ Client Run After Job = "{{ item.client_run_after_job }}"
24+ {% endif %}
25+ {% if item .client_run_before_job is defined %}
26+ Client Run Before Job = "{{ item.client_run_before_job }}"
27+ {% endif %}
2228{% if item .fileset is defined %}
2329 FileSet = "{{ item.fileset }}"
2430{% endif %}
You can’t perform that action at this time.
0 commit comments