On Monday 2017-01-09 09:37:48 Lloyd Brown wrote: > I hope this isn't something obvious I've missed, but ... well ... I > missed it, at least so far. I'll keep looking but my google-fu seems to > be missing something. > > Is there an easy way to run an external script (eg. a "RunAfterJob" or > similar) associated with a *restore* job? I'm trying to build an > automated test of restores, and I need a way to trigger an external > script, so it can md5/sha256 checksum the restored files, etc. > > So far, I've got the actual restore working pretty well, using syntax > > like this: > > echo 'restore client=backup-fd where=/path/to/restore/destination/ > > restoreclient=backup-fd file=</path/to/file/list/to/restore select > > current yes' | bconsole > > At this point, I can script something that can check the files > checksums, and optionally notify us if a restore fails. I just need a > way to trigger that script to run after the restore job completes. I > considered just doing a "echo 'wait' | bconsole" or similar, but there's > a possibility of other jobs still running, so I don't necessarily want > to wait for *those*. > > Any thoughts/recommendations? I'm coming up empty at the moment. > > Thanks, > Lloyd
Hi! Maybe you could make use of Verify jobs in case you are restoring the most recent backup and you have fairly recent Verification job run. -- Josip Deanovic ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users