Am 21.12.2012 18:46, schrieb Joseph De Nicolo: > I need to run a script that will backup my web server's mysql database. [...] > The script needs to run before the backup job obviously, but only on the > client, and the job should continue whether its successful or fails. > Here is my script: > > RunScript { > Command = "/var/backupmysql.sh" > RunsWhen = Before > RunsOnFailure = yes > RunsOnClient = yes > RunsOnSuccess = yes > } > > Now my question is.. should my script(backupmysql.sh) be located on the > backup system only, the client only, or both?
On the client only. > I'm not sure if bacula > takes the script locally and ports it over to the client or if it > searches fo the script on the client itself. The latter. Also, for RunsWhen=Before, RunsOnSuccess and RunsOnFailure are meaningless. In order to have the backup job continue regardless of the result of mysqldump, just make sure your script always returns 0, eg. by putting an "exit 0" at the end. HTH T. -- Tilman Schmidt Phoenix Software GmbH Bonn, Germany
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users