summaryrefslogtreecommitdiffstats
path: root/roles/bacula-dir
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bacula-dir')
-rw-r--r--roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
index 046ba01..eb7566b 100644
--- a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
+++ b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
@@ -85,40 +85,41 @@ JobDefs {
Priority = 20
Write Bootstrap = "/var/lib/bacula/%n.bsr"
}
# Backup the director
Job {
Name = {{ inventory_hostname_short }}-dir
Client = {{ inventory_hostname_short }}-fd
JobDefs = DefaultJob
FileSet = BaculaHome
Schedule = WeeklyCycle
}
# Backup the mailboxes
{% for h in groups.IMAP | sort %}
Job {
Name = {{ hostvars[h].inventory_hostname_short }}-mailboxes
Client = {{ hostvars[h].inventory_hostname_short }}-fd
JobDefs = DefaultJob
+ Accurate = no
FileSet = Mailboxes
Pool = mailboxes-inc
Full Backup Pool = mailboxes-full
Schedule = Mailboxes13WeeksCycle
Max Start Delay = 50 min # To avoid too many overlaps
Max Full Interval = 15 weeks
}
{% endfor %}
# Backup each machine
{% for fd in groups.all | sort %}
Job {
Name = {{ hostvars[fd].inventory_hostname_short }}
Client = {{ hostvars[fd].inventory_hostname_short }}-fd
JobDefs = DefaultJob
FileSet = FileSetRoot
Pool = {{ hostvars[fd].inventory_hostname_short }}
Priority = 15
Schedule = WeeklyCycle
}
@@ -336,44 +337,49 @@ FileSet {
Name = LDAP
Include {
Options {
signature = SHA1
compression = GZIP
verify = s1
WildFile = "*.ldif"
}
Options {
Wild = "*"
Exclude = yes
}
File = /var/lib/bacula/tmp
}
}
FileSet {
Name = Mailboxes
Include {
Options {
+ WildDir = /home/mail/attachments/queue
+ Exclude = yes
+ }
+ Options {
signature = SHA1
verify = pins1
}
File = /home/mail/virtual
+ File = /home/mail/attachments
File = /home/mail/spamspool
}
}
# Client (File Services) to backup
{% for fd in groups.all | sort %}
Client {
Name = {{ hostvars[fd].inventory_hostname_short }}-fd
Address = {{ ipsec[ hostvars[fd].inventory_hostname_short ] }}
FDPort = 9102
Catalog = MyCatalog
@|"sed -n '/^{{ hostvars[fd].inventory_hostname_short }}-fd\\s/ {s//Password = /p; q}' /etc/bacula/passwords-dir"
File Retention = 4 months
Job Retention = 5 months
AutoPrune = yes
#Maximum Bandwidth = 1mb/s
}
{% endfor %}