-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeff Shanholtz wrote: > I’d like to run a script before all my scheduled jobs start and another > one after they all end, as opposed to before/after a single job runs. > I’d like the “after” script to run immediately after the jobs are done, > otherwise I’d just use the Windows task scheduler. I figured I’d be able > to create a “before” job and an “after” job, but it appears that jobs > must perform some actual Bacula task. So is my only alternative to put > the “before” directive in the first job and the “after” directive in the > last job? > > > > In other words, these scripts aren’t specific to a particular job so I > want to disassociate them from the individual jobs if possible.
Create a new backup job. Give it type = admin. Nothing will be backed up. It could also trigger purging of jobs. Run your scripts there. Schedule it, via time, or priority to run before the other jobs. - -- Dan Langille BSDCan - The Technical BSD Conference : http://www.bsdcan.org/ PGCon - The PostgreSQL Conference: http://www.pgcon.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpOakMACgkQCgsXFM/7nTyo6ACfaeAHJtecs166gcaRvxDogJ1g j7cAoISzxNEv5yPd1batRRpIsMzga1K9 =7eDe -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users