|
Hi, I have modified my check-client script as following: #! /bin/bash jobClient=$1 if ( echo "sta client=${jobClient}" | bconsole | grep -v -q "Failed to connect to Client" ); then exit 0 else exit 1 fi With this script, if client is on, backup runs with no problem, but if client is off, bacula-dir is trying to connect during 15 minutes... What I want to avoid is this: waiting 15 minutes. If job has a "Run Before Job" parameter and it returns "1" (client is off), I thought job was cancelled inmediatly it started:
My job definition is: Job { Name = "Backup-Portatil-Tecnicos" JobDefs = "Usuarios" FileSet = "Usuario-Windows" Client = client-fd Write Bootstrap = "/var/bacula/client.bsr" Pool = Portatil-Tecnicos Enabled = yes Messages = Admin Max Run Time = 1h Run Before Job = "/etc/bacula/scripts/check-status-client-NEW.sh '%c'" } Where is my configuration problem? Thanks. |
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
