2 # Default Bacula Director Configuration file
4 # The only thing that MUST be changed is to add one or more
5 # file or directory names in the Include directive of the
8 # For Bacula release 1.39.27 (24 October 2006) -- debian testing/unstable
10 # You might also want to change the default email address
11 # from root to your address. See the "mail" and "operator"
12 # directives in the Messages resource.
15 Director { # define myself
17 DIRPort = @dirport@ # where we listen for UA connections
18 QueryFile = "@scriptdir@/query.sql"
19 WorkingDirectory = "@working_dir@"
20 PidDirectory = "@piddir@"
21 SubSysDirectory = "@subsysdir@"
22 Maximum Concurrent Jobs = 4
23 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password
31 Client = @hostname@-fd
37 Maximum Concurrent Jobs = 16
41 Name = "DefaultJobWithRunscript"
44 Client = @hostname@-fd
50 RunAfterJob = "echo FromJobDefs"
51 Maximum Concurrent Jobs = 16
56 JobDefs = DefaultJobWithRunscript
58 RunBeforeJob = "/bin/echo RunBeforeJob"
59 Run After Job = "/bin/echo RunAfterJob"
65 File=<@tmpdir@/file-list
69 #dir: BeforeJob: run command "/bin/echo RunBeforeJob"
70 #fd: ClientRunBeforeJob: ClientRunBeforeJob
71 #fd: ClientAfterJob: run command "/bin/echo ClientRunAfterJob"
72 #dir: AfterJob: run command "/bin/echo RunAfterJob"
78 RunBeforeJob = "/bin/echo RunBeforeJob"
79 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
80 Run After Job = "/bin/echo RunAfterJob"
81 ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
83 Command = "/bin/echo ClientRunBefore1"
84 Command = "/bin/echo ClientRunBefore2"
85 Command = "/bin/echo ClientRunBefore3"
86 Command = "/bin/echo ClientRunBefore4"
91 # first, you need to unzip win32/win32_runscript.zip to c:/temp
96 RunScript { # 2.4 | 2.5 | cmd /c
97 Command = "c:\\temp\\test.bat" # ok | ok | ok
98 Command = "c:\\temp\\test.bat arg1" # ok | ok | ok
99 Command = "c:/temp/test.bat" # ok | ok | ok
100 Command = "c:/temp/test.bat arg1" # ok | ok | ok
101 Command = "c:/temp/test space.bat" # ok | ok | ok
102 Command = "c:/temp/test2 space.bat" # ok | ok | ok
103 Command = "\"c:/temp/test space.bat\" arg1" # ok | ok | ok
104 Command = "\"c:/temp/dir space/test.bat\" arg1" # ok | ok | ok
105 Command = "c:/temp/érïc/test.bat" # ERR | ok | ok
106 Command = "c:/temp/érïc/test space.bat" # ERR | ok | ok
107 Command = "c:/temp/testé.bat" # ERR | ok | ok
108 Command = "c:/temp/érïc/testé.bat" # ERR | ok | ok
109 Command = "\"c:/temp/dir space/érïc/test.bat\"" # ERR | ERR | ok
110 Command = "\"c:/temp/dir space/érïc/test space.bat\"" # ERR | ERR | ok
111 Command = "c:/temp/test space.bat arg1" # ERR | ERR | ERR
112 Command = "c:/temp/test2 space.bat arg1" # ERR | ERR | ERR
113 Command = "c:/temp/dir space/érïc/test.bat" # ERR | ERR | ERR
114 Command = "c:/temp/dir space/test.bat" # ERR | ERR | ERR
115 Command = "'c:/temp/dir space/test.bat'" # ERR | ERR | ERR
116 Command = "\"c:/temp/éric space/test.bat\"" # ERR | ERR | ERR
117 Command = "c:/temp/éric space/test.bat" # ERR | ERR | ERR
127 RunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
128 ClientRunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
129 ClientRunAfterJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
130 Run After Job = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t vol=%v status=%e"
134 #After job are after before job
136 Name = "RUN_DIR_FAILED_BUG"
139 Run After Failed Job = "/bin/echo RunAfterFailedJob"
140 RunBeforeJob = "/bin/false"
143 #@hostname@-dir: BeforeJob: run command "/bin/false"
144 #@hostname@-dir: BeforeJob: RunAfterFailedJob
146 Name = "RUN_DIR_FAILED"
149 RunBeforeJob = "/bin/false RUN_DIR_FAILED"
150 Run After Failed Job = "/bin/echo RunAfterFailedJob"
153 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
154 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
155 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"
156 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
158 Name = "RUN_FD_FAILED"
162 Command = "/bin/false RUN_FD_FAILED1"
163 Command = "/bin/false RUN_FD_FAILED2"
168 Command = "/bin/false RUN_FD_FAILED3"
169 Command = "/bin/false RUN_FD_FAILED4"
174 Run After Failed Job = "/bin/echo RunAfterFailedJob"
176 Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
181 Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
187 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
188 #we don't execute FAILED2
189 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
191 Name = "RUN_FD_FAILED2"
195 Command = "/bin/false RUN_FD_FAILED1"
200 Command = "/bin/false RUN_FD_FAILED2"
205 Command = "/bin/false RUN_FD_FAILED3"
211 Run After Failed Job = "/bin/echo RunAfterFailedJob"
214 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
215 #Backup OK -- with warnings
217 Name = "RUN_FD_WARNING"
221 Command = "/bin/false RUN_FD_WARNING"
225 Run After Failed Job = "/bin/echo RunAfterFailedJob"
229 Name = "RUN_CONSOLE_CMD"
233 Console = "purge volume=TestVolume001 yes"
244 Client = @hostname@-fd
253 Command = "echo ClientBeforeRestore"
260 Command = "echo ClientAfterRestore"
266 Command = "echo DirBeforeRestore"
273 Command = "echo DirAfterRestore"
277 # Client (File Services) to backup
283 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
284 File Retention = 30d # 30 days
285 Job Retention = 180d # six months
286 AutoPrune = yes # Prune expired Jobs/Files
287 Maximum Concurrent Jobs = 4
290 # Definiton of file storage device
293 Address = @hostname@ # N.B. Use a fully qualified name here
295 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
298 Maximum Concurrent Jobs = 4
301 # Generic catalog service
305 dbname = @db_name@; user = @db_user@; password = "@db_password@"
311 console = all, !skipped, !saved
312 catalog = all, !skipped
315 # Default pool definition
319 Recycle = yes # Bacula can automatically recycle Volumes
320 AutoPrune = yes # Prune expired volumes
321 Volume Retention = 365d # one year