Skip to content

Commit

Permalink
feat(jobs): max full/diff interval settings
Browse files Browse the repository at this point in the history
  • Loading branch information
adf-patrickha committed Feb 13, 2025
1 parent 779b7f7 commit 44c21f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@
write_bootstrap: '|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root'
priority: 11
maximum_concurrent_jobs: 2
- name: BackupMaxSettings
jobdefs: DefaultJob
level: incremental
max_full_interval: 5 days
max_diff_interval: 3 days
max_run_sched: 2 hours
max_run_time: 5 hours
max_wait_time: 10 hours

bareos_dir_messages:
- name: "Standard"
description: "Send relevant messages to the Director."
Expand Down
6 changes: 6 additions & 0 deletions templates/job.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@
{% if item.backup_format is defined %}
Backup Format = {{ item.backup_format }}
{% endif %}
{% if item.max_full_interval is defined %}
Max Full Interval = {{ item.max_full_interval }}
{% endif %}
{% if item.max_diff_interval is defined %}
Max Full Interval = {{ item.max_diff_interval }}
{% endif %}
{% if item.max_run_sched_time is defined %}
Max Run Sched Time = {{ item.max_run_sched_time }}
{% endif %}
Expand Down

0 comments on commit 44c21f7

Please sign in to comment.