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"
66 RunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
67 ClientRunBeforeJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
68 ClientRunAfterJob = "/bin/echo client_name=%c (@hostname@-fd) dir_name=%d (@hostname@-dir) jobid=%i job=%n type=%t"
69 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"
73 #After job are after before job
75 Name = "RUN_DIR_FAILED_BUG"
78 Run After Failed Job = "/bin/echo RunAfterFailedJob"
79 RunBeforeJob = "/bin/false"
82 #@hostname@-dir: BeforeJob: run command "/bin/false"
83 #@hostname@-dir: BeforeJob: RunAfterFailedJob
85 Name = "RUN_DIR_FAILED"
88 RunBeforeJob = "/bin/false RUN_DIR_FAILED"
89 Run After Failed Job = "/bin/echo RunAfterFailedJob"
92 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
93 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
94 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"
95 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
97 Name = "RUN_FD_FAILED"
101 Command = "/bin/false RUN_FD_FAILED1"
102 Command = "/bin/false RUN_FD_FAILED2"
107 Command = "/bin/false RUN_FD_FAILED3"
112 Run After Failed Job = "/bin/echo RunAfterFailedJob"
114 Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
119 Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
125 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
126 #we dont execute FAILED2
127 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
129 Name = "RUN_FD_FAILED2"
133 Command = "/bin/false RUN_FD_FAILED1"
138 Command = "/bin/false RUN_FD_FAILED2"
143 Command = "/bin/false RUN_FD_FAILED3"
149 Run After Failed Job = "/bin/echo RunAfterFailedJob"
152 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
153 #Backup OK -- with warnings
155 Name = "RUN_FD_WARNING"
159 Command = "/bin/false RUN_FD_WARNING"
163 Run After Failed Job = "/bin/echo RunAfterFailedJob"
167 Name = "RUN_CONSOLE_CMD"
171 Console = "purge volume=TestVolume001 yes"
181 Client = @hostname@-fd
190 Command = "echo ClientBeforeRestore"
197 Command = "echo ClientAfterRestore"
203 Command = "echo DirBeforeRestore"
210 Command = "echo DirAfterRestore"
214 # Client (File Services) to backup
220 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
221 File Retention = 30d # 30 days
222 Job Retention = 180d # six months
223 AutoPrune = yes # Prune expired Jobs/Files
224 Maximum Concurrent Jobs = 4
227 # Definiton of file storage device
230 Address = @hostname@ # N.B. Use a fully qualified name here
232 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
235 Maximum Concurrent Jobs = 4
238 # Generic catalog service
242 dbname = @db_name@; user = @db_user@; password = "@db_password@"
248 console = all, !skipped, !saved
249 catalog = all, !skipped
252 # Default pool definition
256 Recycle = yes # Bacula can automatically recycle Volumes
257 AutoPrune = yes # Prune expired volumes
258 Volume Retention = 365d # one year