Hi All,
I am running a notification script before and after a Job begins and ends.
In my Job section, what is the variable to use so that i can pass the client name to the script.
job {
Name = "RazorFishDailyBackup"
Enabled = yes
Type = Backup
Client = RazorFish
FileSet = "RazorFishFileSet"
Schedule = "WeeklyCycle"
Write Bootstrap = "/var/lib/bacula/razorfish.bsr"
Pool = DailySet
Full Backup Pool = DailySet
Differential Backup Pool = DailySet
SpoolData = yes
Storage = AutoLoader
Priority = 9
SpoolData = yes
Messages = Daemon
RunBeforeJob = "/etc/bacula/scripts/notify/notify.sh RazorFishDaily"
RunAfterJob = "/etc/bacula/scripts/notify/notify.sh RazorFishDaily"
}
RunBeforeJob = "/etc/bacula/scripts/notify/notify.sh ServerName"
With what variable should I replace ServerName with? As %C or %c does not work
If you have come across this setup, please point me to the correct documentation.
--
Blue Barracuda Prashant Ramhit is the Systems Administrator at
Blue Barracuda UK
t: +44 (0)20 7400 0950
Sweeps Building,
34 Leather Lane,
London,
EC1N 7SQ
www.bluebarracuda.com
