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
43 File=<@tmpdir@/file-list
47 #dir: BeforeJob: run command "/bin/echo RunBeforeJob"
48 #fd: ClientRunBeforeJob: ClientRunBeforeJob
49 #fd: ClientAfterJob: run command "/bin/echo ClientRunAfterJob"
50 #dir: AfterJob: run command "/bin/echo RunAfterJob"
56 RunBeforeJob = "/bin/echo RunBeforeJob"
57 ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
58 Run After Job = "/bin/echo RunAfterJob"
59 ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
61 Command = "/bin/echo ClientRunBefore1"
62 Command = "/bin/echo ClientRunBefore2"
63 Command = "/bin/echo ClientRunBefore3"
64 Command = "/bin/echo ClientRunBefore4"
69 # first, you need to unzip win32/win32_runscript.zip to c:/temp
74 RunScript { # 2.4 | 2.5 | cmd /c
75 Command = "c:\\temp\\test.bat" # ok | ok | ok
76 Command = "c:\\temp\\test.bat arg1" # ok | ok | ok
77 Command = "c:/temp/test.bat" # ok | ok | ok
78 Command = "c:/temp/test.bat arg1" # ok | ok | ok
79 Command = "c:/temp/test space.bat" # ok | ok | ok
80 Command = "c:/temp/test2 space.bat" # ok | ok | ok
81 Command = "\"c:/temp/test space.bat\" arg1" # ok | ok | ok
82 Command = "\"c:/temp/dir space/test.bat\" arg1" # ok | ok | ok
83 Command = "c:/temp/érïc/test.bat" # ERR | ok | ok
84 Command = "c:/temp/érïc/test space.bat" # ERR | ok | ok
85 Command = "c:/temp/testé.bat" # ERR | ok | ok
86 Command = "c:/temp/érïc/testé.bat" # ERR | ok | ok
87 Command = "\"c:/temp/dir space/érïc/test.bat\"" # ERR | ERR | ok
88 Command = "\"c:/temp/dir space/érïc/test space.bat\"" # ERR | ERR | ok
89 Command = "c:/temp/test space.bat arg1" # ERR | ERR | ERR
90 Command = "c:/temp/test2 space.bat arg1" # ERR | ERR | ERR
91 Command = "c:/temp/dir space/érïc/test.bat" # ERR | ERR | ERR
92 Command = "c:/temp/dir space/test.bat" # ERR | ERR | ERR
93 Command = "'c:/temp/dir space/test.bat'" # ERR | ERR | ERR
94 Command = "\"c:/temp/éric space/test.bat\"" # ERR | ERR | ERR
95 Command = "c:/temp/éric space/test.bat" # ERR | ERR | ERR
105 RunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
106 ClientRunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
107 ClientRunAfterJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
108 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"
112 #After job are after before job
114 Name = "RUN_DIR_FAILED_BUG"
117 Run After Failed Job = "/bin/echo RunAfterFailedJob"
118 RunBeforeJob = "/bin/false"
121 #@hostname@-dir: BeforeJob: run command "/bin/false"
122 #@hostname@-dir: BeforeJob: RunAfterFailedJob
124 Name = "RUN_DIR_FAILED"
127 RunBeforeJob = "/bin/false RUN_DIR_FAILED"
128 Run After Failed Job = "/bin/echo RunAfterFailedJob"
131 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
132 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
133 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"
134 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
136 Name = "RUN_FD_FAILED"
140 Command = "/bin/false RUN_FD_FAILED1"
141 Command = "/bin/false RUN_FD_FAILED2"
146 Command = "/bin/false RUN_FD_FAILED3"
147 Command = "/bin/false RUN_FD_FAILED4"
152 Run After Failed Job = "/bin/echo RunAfterFailedJob"
154 Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
159 Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
165 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
166 #we don't execute FAILED2
167 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
169 Name = "RUN_FD_FAILED2"
173 Command = "/bin/false RUN_FD_FAILED1"
178 Command = "/bin/false RUN_FD_FAILED2"
183 Command = "/bin/false RUN_FD_FAILED3"
189 Run After Failed Job = "/bin/echo RunAfterFailedJob"
192 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
193 #Backup OK -- with warnings
195 Name = "RUN_FD_WARNING"
199 Command = "/bin/false RUN_FD_WARNING"
203 Run After Failed Job = "/bin/echo RunAfterFailedJob"
207 Name = "RUN_CONSOLE_CMD"
211 Console = "purge volume=TestVolume001 yes"
222 Client = @hostname@-fd
231 Command = "echo ClientBeforeRestore"
238 Command = "echo ClientAfterRestore"
244 Command = "echo DirBeforeRestore"
251 Command = "echo DirAfterRestore"
255 # Client (File Services) to backup
261 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
262 File Retention = 30d # 30 days
263 Job Retention = 180d # six months
264 AutoPrune = yes # Prune expired Jobs/Files
265 Maximum Concurrent Jobs = 4
268 # Definiton of file storage device
271 Address = @hostname@ # N.B. Use a fully qualified name here
273 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
276 Maximum Concurrent Jobs = 4
279 # Generic catalog service
283 dbname = @db_name@; user = @db_user@; password = "@db_password@"
289 console = all, !skipped, !saved
290 catalog = all, !skipped
293 # Default pool definition
297 Recycle = yes # Bacula can automatically recycle Volumes
298 AutoPrune = yes # Prune expired volumes
299 Volume Retention = 365d # one year