On Mon, Jan 05, 2009 at 09:33:12AM +0100, Angel wrote:
> On job completion i need to clean up stale processes and fifos, but the
> After Script was never ran.
> 
> Anyone have tried custom restore jobs (with Before/After scripts)?

Yes, it works for me and this is how I did it:

Job {
  Name = "x-restore"
  Type = Restore
  Client = "x-fd"
  FileSet = "FS"
  Storage = "Disk 1"
  Messages = Standard
  Pool = "Disk 1"
  Accurate = yes
  RunScript {
        RunsWhen = Before
        RunsOnClient = yes
        FailJobOnError = yes
        Command = "/usr/bin/clientrunscriptrestore before"
  }
  RunScript {
        RunsWhen = After
        RunsOnClient = yes
        RunsOnFailure = yes
        Command = "/usr/bin/clientrunscriptrestore after"
  }
}


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to