Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-14 Thread Arno Lehmann
Hello, On 2/14/2006 12:57 AM, Chris Dennis wrote: Thomas Glatthor wrote: Hi Chris, you can use a cron-job, which mails the output of this script #!bin/bash ./bconsole -c ./bconsole.conf END_OF_DATA status dir quit END_OF_DATA OK, thanks for that. Has anyone written a script to parse

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-14 Thread Chris Dennis
Brian A. Seklecki wrote: # echo -n status dir | bconsole -s 21|egrep ^Incremental|^Full|awk '{print $1 $4 $5}' Incremental 13-Feb-06 22:00 Incremental 13-Feb-06 22:00 Thanks for that Brian -- much more elegant than the horrible awk hack that I had come up with. cheers Chris

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-14 Thread Chris Dennis
Arno Lehmann wrote: Next question: I can't find a way to ask Which tape is currently in the drive? Is that possible? If it is, I could compare the answer with the output from 'status dir' and send another urgent email if they don't match. That information can be found in the status

[Bacula-users] How to get mount requests before the job runs?

2006-02-13 Thread Chris Dennis
Hello Bacula users I'm new to Bacula, and beginning to get the hang of it. I can't find a way to get the operator notified of which tape to mount *before* the jobs runs. For example, if the daily backup is due to run at 10pm, the operator needs to get the notification before they go home at

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-13 Thread Thomas Glatthor
Hi Chris, you can use a cron-job, which mails the output of this script #!bin/bash ./bconsole -c ./bconsole.conf END_OF_DATA status dir quit END_OF_DATA to your mail account 60 minutes before you'll go home. or you can use the RunAfterJob = /etc/bacula/mailmethenextrequiredtapename.sh

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-13 Thread Guy Zuercher
I did something like this which works for me. Of course you should adopt the jobname and email in order to try with copy/paste. echo Please insert tape: `echo 'status dir' | bconsole tmp1 ; head -n \`grep -n 'Running Jobs:' tmp1 | cut -d: -f1\` tmp1 | grep -o 'YOUR-BACKUP-JOB-NAME.*' | cut

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-13 Thread Chris Dennis
Thomas Glatthor wrote: Hi Chris, you can use a cron-job, which mails the output of this script #!bin/bash ./bconsole -c ./bconsole.conf END_OF_DATA status dir quit END_OF_DATA OK, thanks for that. Has anyone written a script to parse the output of 'status dir' to extract the (likely) next

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-13 Thread Brian A. Seklecki
On Mon, 2006-02-13 at 23:57 +, Chris Dennis wrote: Thomas Glatthor wrote: Hi Chris, you can use a cron-job, which mails the output of this script #!bin/bash ./bconsole -c ./bconsole.conf END_OF_DATA status dir quit END_OF_DATA OK, thanks for that. echo -n status dir |

[Bacula-users] How to get mount requests before the job runs?

2006-02-10 Thread Chris Dennis
Hello Bacula users I'm new to Bacula, and beginning to get the hang of it. I can't find a way to get the operator notified of which tape to mount *before* the jobs runs. For example, if the daily backup is due to run at 10pm, the operator needs to get the notification before they go home at

Re: [Bacula-users] How to get mount requests before the job runs?

2006-02-10 Thread Martin Simmons
On Fri, 10 Feb 2006 17:51:47 +, Chris Dennis [EMAIL PROTECTED] said: Hello Bacula users I'm new to Bacula, and beginning to get the hang of it. I can't find a way to get the operator notified of which tape to mount *before* the jobs runs. For example, if the daily backup is due to