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" # ok | ok | ok
77 Command = "c:/temp/test space.bat" # ok | ok | ok
78 Command = "\"c:/temp/dir space/test.bat\"" # ok | ok | ok
79 Command = "c:/temp/érïc/test.bat" # ERR | ok | ok
80 Command = "c:/temp/érïc/test space.bat" # ERR | ok | ok
81 Command = "c:/temp/testé.bat" # ERR | ok | ok
82 Command = "c:/temp/érïc/testé.bat" # ERR | ok | ok
83 Command = "\"c:/temp/dir space/érïc/test.bat\"" # ERR | ERR | ok
84 Command = "\"c:/temp/dir space/érïc/test space.bat\"" # ERR | ERR | ok
85 Command = "c:/temp/dir space/érïc/test.bat" # ERR | ERR | ERR
86 Command = "c:/temp/dir space/test.bat" # ERR | ERR | ERR
87 Command = "'c:/temp/dir space/test.bat'" # ERR | ERR | ERR
88 Command = "\"c:/temp/éric space/test.bat\"" # ERR | ERR | ERR
89 Command = "c:/temp/éric space/test.bat" # ERR | ERR | ERR
99 RunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
100 ClientRunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
101 ClientRunAfterJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
102 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"
106 #After job are after before job
108 Name = "RUN_DIR_FAILED_BUG"
111 Run After Failed Job = "/bin/echo RunAfterFailedJob"
112 RunBeforeJob = "/bin/false"
115 #@hostname@-dir: BeforeJob: run command "/bin/false"
116 #@hostname@-dir: BeforeJob: RunAfterFailedJob
118 Name = "RUN_DIR_FAILED"
121 RunBeforeJob = "/bin/false RUN_DIR_FAILED"
122 Run After Failed Job = "/bin/echo RunAfterFailedJob"
125 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
126 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
127 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"
128 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
130 Name = "RUN_FD_FAILED"
134 Command = "/bin/false RUN_FD_FAILED1"
135 Command = "/bin/false RUN_FD_FAILED2"
140 Command = "/bin/false RUN_FD_FAILED3"
141 Command = "/bin/false RUN_FD_FAILED4"
146 Run After Failed Job = "/bin/echo RunAfterFailedJob"
148 Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
153 Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
159 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
160 #we dont execute FAILED2
161 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
163 Name = "RUN_FD_FAILED2"
167 Command = "/bin/false RUN_FD_FAILED1"
172 Command = "/bin/false RUN_FD_FAILED2"
177 Command = "/bin/false RUN_FD_FAILED3"
183 Run After Failed Job = "/bin/echo RunAfterFailedJob"
186 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
187 #Backup OK -- with warnings
189 Name = "RUN_FD_WARNING"
193 Command = "/bin/false RUN_FD_WARNING"
197 Run After Failed Job = "/bin/echo RunAfterFailedJob"
201 Name = "RUN_CONSOLE_CMD"
205 Console = "purge volume=TestVolume001 yes"
216 Client = @hostname@-fd
225 Command = "echo ClientBeforeRestore"
232 Command = "echo ClientAfterRestore"
238 Command = "echo DirBeforeRestore"
245 Command = "echo DirAfterRestore"
249 # Client (File Services) to backup
255 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
256 File Retention = 30d # 30 days
257 Job Retention = 180d # six months
258 AutoPrune = yes # Prune expired Jobs/Files
259 Maximum Concurrent Jobs = 4
262 # Definiton of file storage device
265 Address = @hostname@ # N.B. Use a fully qualified name here
267 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
270 Maximum Concurrent Jobs = 4
273 # Generic catalog service
277 dbname = @db_name@; user = @db_user@; password = "@db_password@"
283 console = all, !skipped, !saved
284 catalog = all, !skipped
287 # Default pool definition
291 Recycle = yes # Bacula can automatically recycle Volumes
292 AutoPrune = yes # Prune expired volumes
293 Volume Retention = 365d # one year