Director { # define myself
Name = @hostname@-dir
- DIRport = 8101 # where we listen for UA connections
+ DIRPort = @dirport@ # where we listen for UA connections
QueryFile = "@scriptdir@/query.sql"
WorkingDirectory = "@working_dir@"
PidDirectory = "@piddir@"
SubSysDirectory = "@subsysdir@"
Maximum Concurrent Jobs = 4
Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password
- Messages = Daemon
+ Messages = Standard
}
JobDefs {
FileSet {
Name = FS_TESTJOB
Include {
- File=</tmp/file-list
+ File=<@tmpdir@/file-list
}
}
JobDefs = DefaultJob
RunScript {
Command = "/bin/false RUN_FD_FAILED1"
- abortjobonerror = no
+ failjobonerror = no
RunsWhen = Before
}
RunScript {
Command = "/bin/false RUN_FD_FAILED2"
- abortjobonerror = yes
+ failjobonerror = yes
+ RunsWhen = Before
+ }
+
+ Run After Failed Job = "/bin/echo RunAfterFailedJob"
+ RunScript {
+ Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+ RunScript {
+ Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+}
+
+#@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
+#we dont execute FAILED2
+#@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
+Job {
+ Name = "RUN_FD_FAILED2"
+ FileSet = FS_TESTJOB
+ JobDefs = DefaultJob
+ RunScript {
+ Command = "/bin/false RUN_FD_FAILED1"
+ failjobonerror = yes
+ RunsWhen = Before
+ }
+ RunScript {
+ Command = "/bin/false RUN_FD_FAILED2"
+ failjobonerror = yes
+ RunsWhen = Before
+ }
+ RunScript {
+ Command = "/bin/false RUN_FD_FAILED3"
+ failjobonerror = yes
+ RunsOnFailure = yes
RunsWhen = Before
}
JobDefs = DefaultJob
RunScript {
Command = "/bin/false RUN_FD_WARNING"
- abortjobonerror = no
+ failjobonerror = no
RunsWhen = Before
}
Run After Failed Job = "/bin/echo RunAfterFailedJob"
}
+FileSet {
+ Name = FS_FIFO
+ Include {
+ Options { readfifo = yes }
+ File=<@tmpdir@/file-list
+ }
+}
+
+Job {
+ Name = BUG_897
+ JobDefs = DefaultJob
+ FileSet = FS_FIFO
+
+ RunScript {
+ Command = "/bin/echo touching @tmpdir@/RUN_BUG_897"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+ RunScript {
+ Command = "/bin/touch @tmpdir@/RUN_BUG_897"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+}
+
# Client (File Services) to backup
Client {
Name = @hostname@-fd
Address = @hostname@
- FDPort = 8102
+ FDPort = @fdport@
Catalog = MyCatalog
Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
File Retention = 30d # 30 days
Storage {
Name = File
Address = @hostname@ # N.B. Use a fully qualified name here
- SDPort = 8103
+ SDPort = @sdport@
Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
Device = FileStorage
Media Type = File
# Generic catalog service
Catalog {
Name = MyCatalog
- dbname = bacula; user = bacula; password = ""
+ dbname = regress; user = regress; password = ""
}
Messages {
Name = Standard
- mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r
-"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
- console = all, !skipped, !terminate, !restored
-#
-# WARNING! the following will create a file that you must cycle from
-# time to time as it will grow indefinitely. However, it will
-# also keep all your messages if the scroll off the console.
-#
- append = "@working_dir@/log" = all, !skipped
-}
-
-Messages {
- Name = NoEmail
- mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
- console = all, !skipped, !terminate
-#
-# WARNING! the following will create a file that you must cycle from
-# time to time as it will grow indefinitely. However, it will
-# also keep all your messages if the scroll off the console.
-#
- append = "@working_dir@/log" = all, !skipped
-}
-
-
-# Message delivery for daemon messages (no job).
-Messages {
- Name = Daemon
- mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
- mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
- append = "@working_dir@/log" = all, !skipped
}
# Default pool definition