forked from bareos/bareos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inherit RunScript elements between JobDef resources
- Loading branch information
Showing
4 changed files
with
199 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
Director { | ||
Name = bareos-dir | ||
QueryFile = "/tmp/scripts/query.sql" | ||
Password = "dir_password" # Console password | ||
DirPort = 42001 | ||
Working Directory = "/tmp" | ||
} | ||
|
||
Catalog { | ||
Name = DummyCatalog | ||
dbname = "dummy" | ||
dbuser = "user" | ||
dbpassword = "password" | ||
} | ||
|
||
Pool { | ||
Name = "Incremental" | ||
} | ||
|
||
Messages { | ||
Name = Standard | ||
} | ||
|
||
JobDefs { | ||
Name = "Level1" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
RunScript { | ||
Command = "echo 1" | ||
Runs On Client = No | ||
Runs When = Before | ||
} | ||
} | ||
|
||
JobDefs { | ||
Name = "Level2" | ||
JobDefs = "Level1" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
RunScript { | ||
Command = "echo 2" | ||
Runs On Client = No | ||
Runs When = Before | ||
} | ||
} | ||
|
||
Job { | ||
Name = "CopyJob" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
} | ||
|
||
Job { | ||
Name = "JobWithRunscript" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
RunScript { | ||
Command = "echo 3" | ||
Runs On Client = No | ||
Runs When = Before | ||
} | ||
} | ||
|
||
Job { | ||
Name = "JobWithLevel1" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
JobDefs = Level1 | ||
} | ||
|
||
Job { | ||
Name = "JobWithLevel2" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
JobDefs = Level2 | ||
} | ||
|
||
Job { | ||
Name = "JobWithRunscriptAndLevel2" | ||
Type = Copy | ||
Messages = Standard | ||
Pool = Incremental | ||
JobDefs = Level2 | ||
RunScript { | ||
Command = "echo 3" | ||
Runs On Client = No | ||
Runs When = Before | ||
} | ||
} |
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