Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #358 from joergsteffens/dev/joergs/master/runscrip…
…t-fix dird: fix RunScript parsing
- Loading branch information
Showing
13 changed files
with
353 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ests/python-bareos-test/etc/bareos/bareos-dir.d/job/admin-runscript-client-server.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Job { | ||
Name = "admin-runscript-client-server" | ||
JobDefs = "DefaultJob" | ||
Type = Admin | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
#Runs On Client = Yes | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...tests/tests/python-bareos-test/etc/bareos/bareos-dir.d/job/admin-runscript-client.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Job { | ||
Name = "admin-runscript-client" | ||
JobDefs = "DefaultJob" | ||
Type = Admin | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
#Runs On Client = Yes | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...tests/tests/python-bareos-test/etc/bareos/bareos-dir.d/job/admin-runscript-server.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Job { | ||
Name = "admin-runscript-server" | ||
JobDefs = "DefaultJob" | ||
Type = Admin | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...areos-test/etc/bareos/bareos-dir.d/job/backup-bareos-fd-runscript-client-defaults.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Job { | ||
Name = "backup-bareos-fd-runscript-client-defaults" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
RunScript { | ||
RunsWhen = Before | ||
#Runs On Failure = Yes | ||
#Runs On Client = Yes | ||
#FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../python-bareos-test/etc/bareos/bareos-dir.d/job/backup-bareos-fd-runscript-client.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Job { | ||
Name = "backup-bareos-fd-runscript-client" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = Yes | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../python-bareos-test/etc/bareos/bareos-dir.d/job/backup-bareos-fd-runscript-server.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Job { | ||
Name = "backup-bareos-fd-runscript-server" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...tests/tests/python-bareos-test/etc/bareos/bareos-dir.d/jobdefs/jobdefs-runscript1.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
JobDefs { | ||
Name = "jobdefs-runscript1" | ||
Type = Admin | ||
Messages = Standard | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'jobdefs=jobdefs-runscript1' 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
Jobdefs = "DefaultJob" | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
...tests/tests/python-bareos-test/etc/bareos/bareos-dir.d/jobdefs/jobdefs-runscript2.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
JobDefs { | ||
Name = "jobdefs-runscript2" | ||
Type = Admin | ||
Messages = Standard | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Command = "@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/write.sh @working_dir@/jobid-%i-runscript.log 'jobdefs=jobdefs-runscript2' 'daemon=%d' 'jobname=%n' 'jobtype=%t' 'jobid=%i'" | ||
} | ||
JobDefs = "jobdefs-runscript1" | ||
} | ||
|
Oops, something went wrong.