> if ( echo "sta client=${jobClient}" | bconsole | grep -v -q "Failed to
> connect to Client" ); then
You can't do it with grep -v because it will match all other lines.
You need to use grep without -v and then swap the exit 0 and exit 1 cases.
__Martin
On 01/26/10 05:31, Personal Técnico wrote:
> 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
>
>
> Wit
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
c
What is the output of the job (the parts before "Fatal error: No Job status
returned from FD.")? That output should show the output from running you Run
Before Job script, so you can add echo in the script to see what it gets.
__Martin
Hi,
I have configured a job as following:
Job {
Name = "Backup-client"
JobDefs = "Usuarios"
FileSet = "Usuario-Windows"
Client = client-fd
Write Bootstrap = "/var/bacula/client.bsr"
Pool = Client
Enabled = yes
Messages = Client
Schedule = "Usuarios Wed 13:00"
Run Before Jo
Well, since there has not been a response about my previous scheduling
question, here is another alternative to accomplish the same thing. Could a
Run Before Job script change some of the job settings? Specifically, I am
wondering if a Run Before Job script could be used to change the pool a job
Adrián Ribao Martínez wrote:
> Is there any other way? Can bacula handle this situation (execute a script in
> a remote computer)?
In essence, this is what we have in config file to allow this :
Job {
[...]
RunScript {
Command = "/etc/bacula/mysqldump.sh"
RunsOnClient = Yes
RunsW
On 2008.01.22. 16:58, Adrián Ribao Martínez wrote:
> Hello, I need to make a copy of all the db in a remote computer.
> I saw how bacula makes a backup of the catalog, and I tried to do it in a
> similar way for the remote computer, but I've realized that [Run Before Job]
> executes the script lo
Hello, I need to make a copy of all the db in a remote computer.
I saw how bacula makes a backup of the catalog, and I tried to do it in a
similar way for the remote computer, but I've realized that [Run Before Job]
executes the script locally ( the computer from where the director is
running ),
On Wednesday 27 September 2006 14:29, Diego wrote:
>
> Any suggestions?
> Thanks
Have a look at mysqlhotcopy:
http://dev.mysql.com/doc/refman/5.0/en/mysqlhotcopy.html
--
Best regards,
Vasily Ivanov mailto:[EMAIL PROTECTED]
---
This is what you said Arno Lehmann
> Hi,
>
> On 9/27/2006 9:29 AM, Diego wrote:
>> Hi I try various ways for backup a mysql. I think the best is do a
>> mysqldump (run before job) and backup the sql file (Fileset = { File =
>> tmp/mydatabase.sql } ) but I have a lot of problems with permissions
>>
On Wed, September 27, 2006 12:29 am, Diego said:
> Any suggestions?
1) Don't post passwords on mailing lists
2) I use automysqlbackup
(http://sourceforge.net/projects/automysqlbackup/). I have it run, then
later on the bacula backup runs and backs up the stuff automysqlbackup
did.
Michael
---
Hi,
On 9/27/2006 9:29 AM, Diego wrote:
> Hi I try various ways for backup a mysql. I think the best is do a
> mysqldump (run before job) and backup the sql file (Fileset = { File =
> tmp/mydatabase.sql } ) but I have a lot of problems with permissions
> with any command. Where the command "run
Hi I try various ways for backup a mysql. I think the best is do a mysqldump (run before job) and backup the sql file (Fileset = { File = tmp/mydatabase.sql } ) but I have a lot of problems with permissions with any command. Where the command "run before job" is executed?in the director host (bacul
Using /etc/init.d/zimbra stop don't works20-sep 09:03 ZimbraBK-dir: RunBefore: standard in must be a tty20-sep 09:03 ZimbraBK-dir:
CopiaPrueba.2006-09-20_09.03.43 Fatal error: RunBeforeJob error: ERR=Child exited with code 12006/9/19, Diego <[EMAIL PROTECTED]>:
Oh I test a ps auxw after zmcontrol
Oh I test a ps auxw after zmcontrol stop script and it doesn't stop all services too jeje ok I'll use /etc/init.d/zimbra stop Thanks2006/9/19, Diego <
[EMAIL PROTECTED]>:Because the
/etc/init.d/zimbra stop don't stop all services:[EMAIL PROTECTED] opt]# ps auxw|grep zimbraroot 28859 0.0
Because the /etc/init.d/zimbra stop don't stop all services:[EMAIL PROTECTED] opt]# ps auxw|grep zimbraroot 28859 0.0 0.1 4420 1184 pts/0 S 09:06 0:00 su zimbra
zimbra 28861 0.0 0.1 4380 1448 pts/0 S 09:06 0:00 bashroot 2000 0.0 0.1 4424 1188 pts/0 S
hello,
> Now using sudo:
>
> sudo -u zimbra -p '(withoutpassword)' '/opt/zimbra/bin/zmcontrol' stop;
>
> 19-sep 11:49 ZimbraBK-dir: RunBefore:
> 19-sep 11:49 ZimbraBK-dir: CopiaPrueba.2006-09-19_11.49.13 Fatal error:
> RunBeforeJob error: ERR=Child exited with code 1
> Where can I see a log of the
Hi,
On 9/19/2006 12:05 PM, Diego wrote:
>
> Hello,
>
> On 9/19/2006 9:54 AM, Diego wrote:
> > Hi, I need to run a script to stop a service before do the
> backup. Only
> > one user can stop this service, this user not need password for
> run the
> > stop command.
>
Hello,On 9/19/2006 9:54 AM, Diego wrote:> Hi, I need to run a script to stop a service before do the backup. Only
> one user can stop this service, this user not need password for run the> stop command.> In my bacula-dir.config I have:>> run before job = "/opt/bacula/script_stop_service"
>> In the
Hello,
On 9/19/2006 9:54 AM, Diego wrote:
> Hi, I need to run a script to stop a service before do the backup. Only
> one user can stop this service, this user not need password for run the
> stop command.
> In my bacula-dir.config I have:
>
> run before job = "/opt/bacula/script_stop_service"
It seems something in your "command_service stop" has problems running
without a terminal - when a program invokes it rather than a human
from a working terminal, it's not a permissions problem
On 19/09/06, Diego <[EMAIL PROTECTED]> wrote:
> Hi, I need to run a script to stop a service before do t
Hi, I need to run a script to stop a service before do the backup. Only one user can stop this service, this user not need password for run the stop command. In my bacula-dir.config I have:
run before job = "/opt/bacula/script_stop_service"In the script_stop_service I have:su - service_user -c "co
23 matches
Mail list logo