On jeudi, 23 février 2017 18.07:55 h CET [email protected] wrote: > The main reference manual gives a working example of calling and executing > bconsole commands from a script (insert your favorite shell here.) > > http://doc.bareos.org/master/html/bareos-manual-main-reference.html#QQ2-1-35 > 5 > > We're not currently in a position to upgrade to 16.x to take advantage of > client initiated backups and need to work out a solution for a fail-safe if > a client isn't available. > > The current problem is in the recycling of the storage (file based) where > the associated storage is erased BEFORE the Job attempts to connect to the > client-fd to run the backup. > > In the case where a client is inaccessible, the data on that storage volume > is lost. > > I don't see a mechanism where a RunBeforeJob script can then kill the > pending Job if the client is inaccessible. Perhaps I'm just missing > something here. > > For anyone who has encountered this or is familiar with scripting the > console, your input is much appreciated.
Did you try to run a script that return 0 if the client is there and 1 or whatever if not ? You can then use the option of runscript to simply cancel the job on error. I've those kind of script, that try to ping the client, run the job if ok or try to wake on line the client wait, and fail if ping still not working after 3 mins of wait. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot openSUSE Tumbleweed Linux 4.9.10-1-default x86_64 GNU/Linux, nvidia: 378.13 Qt: 5.7.1, KDE Frameworks: 5.30.0, Plasma: 5.9.2, kmail2 5.4.2 -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
