Hello list
I've been trying to create an Admin Job to execute a script on the director
itself, but the Admin Job simply ignore the RunScript section. I know that
Admin Jobs can only run Director Script, not remote Client Script, but my
Client is the Director, so, what am I doing wrong?
Here's the config:
Client {
Name = client.ptibacula-dir
Address = ptibacula-dir.pti # This is the FQDN of the Director
Catalog = cat.default
Password = "XXX"
File Retention = 6 months
Job Retention = 6 months
}
Job {
Name = job.admin
Client = client.ptibacula-dir
JobDefs = jobdef.default
Type = Admin
RunScript {
RunsWhen = Before
FailJobOnError = Yes
Command = "/bin/myscript.sh"
}
}
JobDefs {
Name = jobdef.default
Type = Backup
Write Bootstrap = "/var/lib/bacula/jobs/bootstrap.%c.%n.bsr"
FileSet = fs.default
Messages = msg.default
Pool = pool.default
Schedule = sch.default
Max Start Delay = 48h
Spool Data = yes
Allow Duplicate Jobs = no
Cancel Lower Level Duplicates = yes
}
P.S.: Documentation on Admin Jobs are really poor...
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users