Re: [Bacula-users] running script before job fails due to permission issue

2012-04-11 Thread Martin Simmons
> On Tue, 10 Apr 2012 15:35:45 -0700, Murray Davis said: > > As Martin S. suggested, I ended up moving the script to /etc/bacula and the > bacula was able to run the script before the job ran...which still seems > strange given that the permissions were the same in the /root directory as > in

Re: [Bacula-users] running script before job fails due to permission issue

2012-04-10 Thread Murray Davis
As Martin S. suggested, I ended up moving the script to /etc/bacula and the bacula was able to run the script before the job ran...which still seems strange given that the permissions were the same in the /root directory as in the /etc/bacula directory. -

Re: [Bacula-users] running script before job fails due to permission issue

2012-04-09 Thread Martin Simmons
> On Thu, 5 Apr 2012 16:27:56 -0700, Murray Davis said: > > When logged on as root, I can run the following script to backup my MySQL > databases to a local folder: > > #!/bin/bash > > BACKUPLOCATION=/var/local/mysqlbackups > LOGFILE=/usr/local/sbin/backupdbs.log > GZIP="$(which gzip)" > NOW

Re: [Bacula-users] running script before job fails due to permission issue

2012-04-05 Thread Phil Stracchino
On 04/05/2012 07:27 PM, Murray Davis wrote: > When logged on as root, I can run the following script to backup my > MySQL databases to a local folder: [...] > 05-Apr 16:18 cablemon-dir JobId 27: shell command: run BeforeJob > "/usr/local/sbin/backupdbs" > 05-Apr 16:18 cablemon-dir JobId 27: Befo

[Bacula-users] running script before job fails due to permission issue

2012-04-05 Thread Murray Davis
When logged on as root, I can run the following script to backup my MySQL databases to a local folder: #!/bin/bash BACKUPLOCATION=/var/local/mysqlbackups LOGFILE=/usr/local/sbin/backupdbs.log GZIP="$(which gzip)" NOW=$(date +"%d-%m-%Y") RETENTION=30 #remove .gz files greater than 30 days old find