summaryrefslogtreecommitdiffstats
path: root/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-11-03 05:53:49 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-11-03 05:56:46 +0100
commit297005c239408bf269b21a8828c6d5c479e9b8a1 (patch)
treef858d80f2bdc5ee2a7ff5ad577bf86b03d2a68b3 /roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
parente91e0e722c3d09a21905d66f3d217cdcd241d2fb (diff)
Revert "Bacula Director: Properly quote shell command."
This reverts commit 26bae877102752a41a903cab2ee0891f8f261d38.
Diffstat (limited to 'roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2')
-rw-r--r--roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j22
1 files changed, 1 insertions, 1 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 7de9b5d..b963c2c 100644
--- a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
+++ b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
@@ -62,41 +62,41 @@ JobDefs {
JobDefs {
Name = DefaultSlapdJob
Type = Backup
Level = Full
Storage = {{ hostvars[ groups['bacula_sd'][0] ].inventory_hostname_short }}-sd
Messages = Standard
FileSet = LDAP
Schedule = WeeklyCycleAfterBackup
Reschedule On Error = yes
Reschedule Interval = 17 min
Reschedule Times = 3
# This creates an ASCII copy of the databases
Client Run Before Job = "/usr/local/sbin/slapcat-all.sh /var/lib/bacula/tmp"
# This deletes the copy of the catalog
RunScript {
Runs On Client = yes
Runs On Success = yes
Runs On Failure = yes
Runs When = after
- Command = "/usr/bin/find /var/lib/bacula/tmp -type f \\( -name '*.ldif' -o -name 'slapd-*' \\) -delete"
+ Command = "/usr/bin/find /var/lib/bacula/tmp -type f \( -name \"*.ldif\" -o -name \"slapd-*\" \) -delete"
}
Pool = database
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