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"
73 RunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
74 ClientRunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
75 ClientRunAfterJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
76 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"
80 #After job are after before job
82 Name = "RUN_DIR_FAILED_BUG"
85 Run After Failed Job = "/bin/echo RunAfterFailedJob"
86 RunBeforeJob = "/bin/false"
89 #@hostname@-dir: BeforeJob: run command "/bin/false"
90 #@hostname@-dir: BeforeJob: RunAfterFailedJob
92 Name = "RUN_DIR_FAILED"
95 RunBeforeJob = "/bin/false RUN_DIR_FAILED"
96 Run After Failed Job = "/bin/echo RunAfterFailedJob"
99 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
100 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
101 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"
102 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
104 Name = "RUN_FD_FAILED"
108 Command = "/bin/false RUN_FD_FAILED1"
109 Command = "/bin/false RUN_FD_FAILED2"
114 Command = "/bin/false RUN_FD_FAILED3"
115 Command = "/bin/false RUN_FD_FAILED4"
120 Run After Failed Job = "/bin/echo RunAfterFailedJob"
122 Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
127 Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
133 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
134 #we dont execute FAILED2
135 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
137 Name = "RUN_FD_FAILED2"
141 Command = "/bin/false RUN_FD_FAILED1"
146 Command = "/bin/false RUN_FD_FAILED2"
151 Command = "/bin/false RUN_FD_FAILED3"
157 Run After Failed Job = "/bin/echo RunAfterFailedJob"
160 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
161 #Backup OK -- with warnings
163 Name = "RUN_FD_WARNING"
167 Command = "/bin/false RUN_FD_WARNING"
171 Run After Failed Job = "/bin/echo RunAfterFailedJob"
175 Name = "RUN_CONSOLE_CMD"
179 Console = "purge volume=TestVolume001 yes"
190 Client = @hostname@-fd
199 Command = "echo ClientBeforeRestore"
206 Command = "echo ClientAfterRestore"
212 Command = "echo DirBeforeRestore"
219 Command = "echo DirAfterRestore"
223 # Client (File Services) to backup
229 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
230 File Retention = 30d # 30 days
231 Job Retention = 180d # six months
232 AutoPrune = yes # Prune expired Jobs/Files
233 Maximum Concurrent Jobs = 4
236 # Definiton of file storage device
239 Address = @hostname@ # N.B. Use a fully qualified name here
241 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
244 Maximum Concurrent Jobs = 4
247 # Generic catalog service
251 dbname = @db_name@; user = @db_user@; password = "@db_password@"
257 console = all, !skipped, !saved
258 catalog = all, !skipped
261 # Default pool definition
265 Recycle = yes # Bacula can automatically recycle Volumes
266 AutoPrune = yes # Prune expired volumes
267 Volume Retention = 365d # one year