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"
62 #After job are after before job
64 Name = "RUN_DIR_FAILED_BUG"
67 Run After Failed Job = "/bin/echo RunAfterFailedJob"
68 RunBeforeJob = "/bin/false"
71 #@hostname@-dir: BeforeJob: run command "/bin/false"
72 #@hostname@-dir: BeforeJob: RunAfterFailedJob
74 Name = "RUN_DIR_FAILED"
77 RunBeforeJob = "/bin/false RUN_DIR_FAILED"
78 Run After Failed Job = "/bin/echo RunAfterFailedJob"
81 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
82 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
83 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"
84 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
86 Name = "RUN_FD_FAILED"
90 Command = "/bin/false RUN_FD_FAILED1"
91 Command = "/bin/false RUN_FD_FAILED2"
96 Command = "/bin/false RUN_FD_FAILED3"
101 Run After Failed Job = "/bin/echo RunAfterFailedJob"
103 Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
108 Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
114 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
115 #we dont execute FAILED2
116 #@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
118 Name = "RUN_FD_FAILED2"
122 Command = "/bin/false RUN_FD_FAILED1"
127 Command = "/bin/false RUN_FD_FAILED2"
132 Command = "/bin/false RUN_FD_FAILED3"
138 Run After Failed Job = "/bin/echo RunAfterFailedJob"
141 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
142 #Backup OK -- with warnings
144 Name = "RUN_FD_WARNING"
148 Command = "/bin/false RUN_FD_WARNING"
152 Run After Failed Job = "/bin/echo RunAfterFailedJob"
156 Name = "RUN_CONSOLE_CMD"
160 Console = "purge volume=TestVolume001 yes"
170 Client = @hostname@-fd
179 Command = "echo ClientBeforeRestore"
186 Command = "echo ClientAfterRestore"
192 Command = "echo DirBeforeRestore"
199 Command = "echo DirAfterRestore"
203 # Client (File Services) to backup
209 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
210 File Retention = 30d # 30 days
211 Job Retention = 180d # six months
212 AutoPrune = yes # Prune expired Jobs/Files
213 Maximum Concurrent Jobs = 4
216 # Definiton of file storage device
219 Address = @hostname@ # N.B. Use a fully qualified name here
221 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
224 Maximum Concurrent Jobs = 4
227 # Generic catalog service
231 dbname = @db_name@; user = @db_user@; password = "@db_password@"
237 console = all, !skipped, !saved
240 # Default pool definition
244 Recycle = yes # Bacula can automatically recycle Volumes
245 AutoPrune = yes # Prune expired volumes
246 Volume Retention = 365d # one year