Re: [Bacula-users] Bacula version upgrade for FreeBSD

2009-07-03 Thread Silver Salonen
On Friday 03 July 2009 01:31:45 mehma sarja wrote:
 Bacula on FreeBSD is at 2.4.2, any short-term prospects we will see version
 3 port or package?
 Yudhvir

No it isn't - it's 3.0.0. I'm eagerly waiting for 3.0.1, but it seems Dan 
Langille (port's maintainer) has been away a month or so..

-- 
Silver

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Using two different media at the same time

2009-07-03 Thread ginzzer
Hi there,
  I have a tape and a raw disk. How can I configure such that bacula
backup to the tape in odd day and to the disk in even day?

I try to setup two Storage but bacula said only one is allowed. So I
setup two devices under the same Storage... however... in
bacula-dir.conf, each JobDefs/Job is associated with only one Storage
and only one storage is allowed, so it seems no way to specify one
storage for this job and another one for that job. So does it mean we
cannot use two different storage device for different backup at the same
time?

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula version upgrade for FreeBSD

2009-07-03 Thread mehma sarja
Never mind I see it on freebsd site.
===

On Thu, Jul 2, 2009 at 11:58 PM, mehma sarja mehmasa...@gmail.com wrote:

 Silver,I'll take 3.0.0 - please point me towards that direction.
 ===
 On Thu, Jul 2, 2009 at 11:19 PM, Silver Salonen sil...@ultrasoft.eewrote:

 On Friday 03 July 2009 01:31:45 mehma sarja wrote:
  Bacula on FreeBSD is at 2.4.2, any short-term prospects we will see
 version
  3 port or package?
  Yudhvir

 No it isn't - it's 3.0.0. I'm eagerly waiting for 3.0.1, but it seems Dan
 Langille (port's maintainer) has been away a month or so..

 --
 Silver



--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Notebook Backup

2009-07-03 Thread Silver Salonen
On Thursday 02 July 2009 22:05:18 Il Neofita wrote:
 Hi
 If I have portable PC and I do not know when they will be at the office, can
 I give to the user the possibility to start the backup?
 Since I do not know if the user will be at the office for couples of minutes
 or hours
 
 Thank you

I've solved the problem by installing OpenVPN onto the server and creating a 
batch script that connects the VPN and then runs the jobs over bconsole - the 
latter assumes the correct ACL for the client.

--
Silver

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] backup catalog fail?

2009-07-03 Thread Kevin Keane
bacula.sql is the file that make_catalog_backup should create. 
Apparently, that script failed for some reason, or it put the backup 
file somewhere else.

The bacula catalog is stored in a mysql database. The most common way to 
back up databases is in two steps. First, dump the database into a file 
with the .sql extension, and then have bacula back up that file.

make_catalog_backup is supposed to do the first part. The error message 
indicates that bacula can't find the file that make_catalog_backup created.

Hint: maybe it is actually in /var/bacula/working (without the /opt/bacula?)

ginzzer wrote:
 I have installed the lastest bacula to CentOS5 with mysql installed. I
 have no problem to backup / (root) to the tape. But after that, it start
 to backup the catalog  automaticall and it returns the following error

 02-Jul 01:50 ad-dir JobId 18: shell command: run BeforeJob
 /opt/bacula/etc/make_catalog_backup adDB adbu
 02-Jul 01:50 ad-dir JobId 18: Start Backup JobId 18,
 Job=BackupCatalog.2009-07-02_01.00.00_04
 02-Jul 01:50 ad-dir JobId 18: Using Device my-tape
 02-Jul 01:50 localhost-fd JobId 18:  Could not stat 
 /opt/bacula/var/bacula/working/bacula.sql: ERR=No such file or directory

 What is bacula.sql? How to create that?

 --
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] tapealert/smartctl bacula alert command

2009-07-03 Thread Olaf Zevenboom
Dear List,

In the docs and sample configs of Bacula one can find information about 
the alert command and how it can be used
http://bacula.org/en/rel-manual/Storage_Daemon_Configuratio.html#9296
Relevant external docs:
http://smartmontools.sourceforge.net/smartmontools_scsi.html#tapes
http://www.tapealert.org/

Issue is as follows:
we have a single slot drive which supports tapealert through smartctl. 
This works fine from commandline. And should be ok according to the 
Bacula manual.
I was hoping I could use this feature to detect the need for cleaning 
the tapedrive and send an email to the tape-operator if so.
However I run into problems when  trying to use it from within Bacula.

Device section of sd.conf :
Changer Device = /dev/nst0
#Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
Alert Command = sh -c 'smartctl -H -l error %c'


Just as in this thread on the mailinglist: 
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg23093.html
I found out that regardless if one runs smartctl as user bacula or sudo 
it from with bacula through the alert command directive in the device 
stanza in bacula-sd.conf
One can run into the following problems:
- Changer Device was not defined : resulting in an exit code unequal to 
0 from smartctl resulting in abnormal termination of job
- Changer Device was defined: device is locked resulting an exit code 
unequal to 0 from smartcrl resulting in the current volume going into an 
Used state and therefor Bacula wants an new volume to continue with 
the job. The new volume is not available and thus the job stalls.

My Questions:
Can this be resolved in some way so I can still use the Alert command?
If not, what is the best way to implement this feature? An external 
script checking stuff after everything is backuped and then grepping the 
operator's email-address from the config file?
If multiple people have issues with this command (with single slot 
drives) shouldn't there be an adjustment/warning in the manual?

Regards,
Olaf


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Always Open does not work with 3.0.1?

2009-07-03 Thread Sascha Wilde
Sascha Wilde wi...@sha-bang.de wrote:
 ... Volume MYVOL previously written, moving to end of data.
 [...]
 ... Ready to append to end of Volume MYVOL at file=XX.

 witch takes a few minutes (depending on how full the tape is).
[...]
 And as far as I understand the Always Open = yes; should prevent
 exactly this problem.

Interesting additional observation: 

This happened for a bunch of jobs which were manually run and
automatically upgraded from incremental to full (as there were no
previous backups of them).

Today a bunch of scheduled incremental instances of the same jobs ran
without showing the annoying close/open cycle.

So this _might_ be either related to the automatic update to full, or
the manual starting of the jobs...

I'll keep you up to date as I collect more information on this issue.

cheers
sascha
-- 
Sascha Wilde : The sum of intelligence on earth is a constant; 
 : population is growing

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Jobs Keep Restarting

2009-07-03 Thread John Kloss

On Jul 2, 2009, at 5:41 PM, randa...@bioinfo.wsu.edu wrote:

 I see that Bacula 3.0 has a duplicate job control feature.  Perhaps  
 I need to upgrade to 3.0 and use this feature.  However I believe I  
 have something else wrong in my configuration.  I need to read up  
 on the configuration options more.  Perhaps there is some setting  
 that I have missed.

 Anyone else have experience with large jobs.  I have an overland  
 neo 2000 with two, lto 3 tape drives installed.



I think what limits the number of jobs is Maximum Concurrent Jobs  
defined in the Director or Storage or Pool or Job resource.  However,  
I'm finding with Bacula 3.0.1 this configuration option is  
_completely_ ignored.

Here's part of my configuration file

Director {
Name= Logger-Director-01
Password= **

Dir Addresses   = {
ipv4 = {
addr = 127.0.0.1
port = 9101
}
}

Working Directory   = /opt/bacula/var/working
Pid Directory   = /opt/bacula/var/working
Query File  = /opt/bacula/var/scripts/query.sql

Maximum Concurrent Jobs = 10

Messages= Standard
}

JobDefs {
 Name   = FileStorage-Main-JobDef-01

 Type   = Backup
 Level  = Incremental

 Pool   = 
L180-LTO3-Autochanger-Full-Pool-01
 Full Backup Pool   = L180-LTO3-Autochanger-Full- 
Pool-01
 DifferentialBackup Pool= L180-LTO3-Autochanger-Incremental- 
Pool-01
 Incremental  Backup Pool   = L180-LTO3-Autochanger-Incremental- 
Pool-01

 Priority   = 10
 Allow Mixed Priority   = Yes

 Max Start Delay= 28800
 Rerun Failed Levels= No
 Maximum Concurrent Jobs= 1

 Write Bootstrap= /opt/bacula/var/bootstraps/%n.bsr

 Messages   = Standard
}


Job {
 Name   = Arking-Job-01
 JobDefs = FileStorage-Main-JobDef-01

 Client = Filer01-02

 File Set   = Arking-FileSet-01
 Schedule   = 1st-Sunday-Cycle
}


Pool {
 Name   = L180-LTO3-Autochanger-Full-Pool-01
 Pool Type  = Backup

 Maximum Volume Jobs= 0
 Recycle= Yes
 AutoPrune  = Yes
 Volume Retention   = 75d

 ScratchPool= L180-LTO3-Autochanger-Scratch-Pool-01
 RecyclePool= L180-LTO3-Autochanger-Scratch-Pool-01

 Storage= Logger-L180-LTO3-Autochanger-01
}


Pool {
 Name   = L180-LTO3-Autochanger-Incremental-Pool-01
 Pool Type  = Backup

 Maximum Volume Jobs= 0
 Recycle= Yes
 AutoPrune  = Yes
 Volume Retention   = 40d

 ScratchPool= L180-LTO3-Autochanger-Scratch-Pool-01
 RecyclePool= L180-LTO3-Autochanger-Scratch-Pool-01

 Storage= Logger-L180-LTO3-Autochanger-01
}

Storage {
Name= Logger-L180-LTO3-Autochanger-01
Password= **

Address = logger01.igm.jhmi.edu
SD Port = 9103

Device  = L180-Autochanger-02
Media Type  = LTO3

Autochanger = Yes

Maximum Concurrent Jobs = 2
}

Client {
Name= Filer01-02
Password= ***

Address = 192.168.2.160
FD Port = 9102

Catalog = Logger-Catalog-01

File Retention  = 1825d
Job  Retention  = 1825d
Auto Prune  = Yes

Maximum Concurrent Jobs = 3
}

Here's what you would expect to happen

Run Arking-Job-01
Run Arking-Job-01 again

The second Arking-Job-01 should wait until the first finishes because  
Maximum Concurrent Jobs =1 in the JobDef.  That's _not_ true,  
apparently.  Bacula is perfectly happy to run both jobs _at the same  
time_.

Okay, so I try this

Run Arking-Job-01
Run Arking-Job-01 again
Run Arking-Job-01 again, again

At least one of these jobs should wait because Maximum Concurrent  
Jobs = 2 in the Storage Resource.  That's _not_ true, either.  Bacula  
will run all three concurrently.

Okay, so I try this

Run Arking-Job-01
Run Arking-Job-01 again
Run Arking-Job-01 again, again
Run Arking-Job-01 again, again, again

_Now_ one of the jobs will wait.

So it seems to me that Bacula will pay attention to the Maximum  
Concurrent Jobs in the client resource and completely ignore the  
configuration item in the Storage and Job resources.

I may be misunderstanding how this all works but I really did go  
through the documentation multiple, multiple times.  It's pretty  
frustrating because I'm constantly watching Bacula so 

Re: [Bacula-users] backup catalog fail?

2009-07-03 Thread ginzzer
I check that, no /var/bacula directory. But I also check
make_catalog_backup, seems that it will produced a sql naming with the
database instead of bacula.sql, I change the corresponding option in the
configuration file and it seems work fine now. So am I doing it right?

on 2/7/2009 5:20:03, Kevin Keane subscript...@kkeane.com wrote:
Re: [Bacula-users] backup catalog fail?
 bacula.sql is the file that make_catalog_backup should create. 
 Apparently, that script failed for some reason, or it put the backup 
 file somewhere else.
 
 The bacula catalog is stored in a mysql database. The most common way to 
 back up databases is in two steps. First, dump the database into a file 
 with the .sql extension, and then have bacula back up that file.
 
 make_catalog_backup is supposed to do the first part. The error message 
 indicates that bacula can't find the file that make_catalog_backup created.
 
 Hint: maybe it is actually in /var/bacula/working (without the /opt/bacula?)
 
 ginzzer wrote:
  I have installed the lastest bacula to CentOS5 with mysql installed. I
  have no problem to backup / (root) to the tape. But after that, it start
  to backup the catalog  automaticall and it returns the following error
 
  02-Jul 01:50 ad-dir JobId 18: shell command: run BeforeJob
  /opt/bacula/etc/make_catalog_backup adDB adbu
  02-Jul 01:50 ad-dir JobId 18: Start Backup JobId 18,
  Job=BackupCatalog.2009-07-02_01.00.00_04
  02-Jul 01:50 ad-dir JobId 18: Using Device my-tape
  02-Jul 01:50 localhost-fd JobId 18:  Could not stat 
  /opt/bacula/var/bacula/working/bacula.sql: ERR=No such file or directory
 
  What is bacula.sql? How to create that?
 
  --
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

 
 
 -- 
 Kevin Keane
 Owner
 The NetTech
 Find the Uncommon: Expert Solutions for a Network You Never Have to Think 
 About
 
 Office: 866-642-7116
 http://www.4nettech.com
 
 This e-mail and attachments, if any, may contain confidential and/or 
 proprietary information. Please be advised that the unauthorized use or 
 disclosure of the information is strictly prohibited. The information herein 
 is intended only for use by the intended recipient(s) named above. If you 
 have received this transmission in error, please notify the sender 
 immediately and permanently delete the e-mail and any copies, printouts or 
 attachments thereof.
 
 
 --
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


-- 
ginzzer ginz...@gmail.com 


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] backup catalog fail?

2009-07-03 Thread John Drescher
On Fri, Jul 3, 2009 at 12:14 PM, ginzzerginz...@gmail.com wrote:
 I check that, no /var/bacula directory. But I also check
 make_catalog_backup, seems that it will produced a sql naming with the
 database instead of bacula.sql, I change the corresponding option in the
 configuration file and it seems work fine now. So am I doing it right?

If it works you are probably doing it correctly. Paths and scripts
will be different depending on what OS you use or if you build the
software yourself.

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] backup catalog fail?

2009-07-03 Thread Reynier Perez Mira

ginzzer wrote:

I check that, no /var/bacula directory. But I also check
make_catalog_backup, seems that it will produced a sql naming with the
database instead of bacula.sql, I change the corresponding option in the
configuration file and it seems work fine now. So am I doing it right?

on 2/7/2009 5:20:03, Kevin Keane subscript...@kkeane.com wrote:
Re: [Bacula-users] backup catalog fail?




Hi every:
I have a question here. I need to backup Bacula DB (PostgreSQL) too. My 
Job for do that is as follow:


Job {
  Name = BackupCatalog
  JobDefs = DefaultJob
  Level = Full
  FileSet=Catalog
  Schedule = WeeklyCycleAfterBackup
  RunBeforeJob = /etc/bacula/make_catalog_backup bacula_db bacula_user 
bacula_pass 10.128.50.3

  RunAfterJob  = /etc/bacula/delete_catalog_backup
  Write Bootstrap = /var/bacula/working/BackupCatalog.bsr
  Priority = 11   # run after main backup
}

This create a file called bacula.sql in /var/bacula/working. Now I want 
to backup this file to my Storage (File). How I do that? I mean wich is 
the correct configuration? I need to create another Job?


Cheers and thanks in advance
--
Ing. Reynier Pérez Mira
begin:vcard
fn;quoted-printable:Reynier P=C3=A9rez Mira
n;quoted-printable:P=C3=A9rez Mira;Reynier
email;internet:rper...@uci.cu
tel;work:053-7-8358824
tel;pager:23744
tel;home:053-23-426126
x-mozilla-html:FALSE
version:2.1
end:vcard

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] runbeforejob/runafterjob

2009-07-03 Thread Jeff Shanholtz
I'd like to run a script before all my scheduled jobs start and another one
after they all end, as opposed to before/after a single job runs. I'd like
the after script to run immediately after the jobs are done, otherwise I'd
just use the Windows task scheduler. I figured I'd be able to create a
before job and an after job, but it appears that jobs must perform some
actual Bacula task. So is my only alternative to put the before directive
in the first job and the after directive in the last job?

 

In other words, these scripts aren't specific to a particular job so I want
to disassociate them from the individual jobs if possible.

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] FreeBSD : OpenSSL on by default?

2009-07-03 Thread Dan Langille
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At present, the FreeBSD port has OpenSSL turned off by default.  I am
considering changing that to ON by default.  This would have no
operational / functional change to the resulting binaries.  You do not
have to use OpenSSL.  It just seems to be a good choice.

Comments?

- --
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference: http://www.pgcon.org/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpOXZwACgkQCgsXFM/7nTxMCQCglytmzWYLfH0bhvJQni9B2XRV
Gc0An33nIBR5fKYStcjnjSBSS0wQA7CJ
=gc6S
-END PGP SIGNATURE-

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] runbeforejob/runafterjob

2009-07-03 Thread Arno Lehmann
Hi,

03.07.2009 20:49, Jeff Shanholtz wrote:
 
 
 I’d like to run a script before all my scheduled jobs start and another 
 one after they all end, as opposed to before/after a single job runs. 
 I’d like the “after” script to run immediately after the jobs are done, 
 otherwise I’d just use the Windows task scheduler. I figured I’d be able 
 to create a “before” job and an “after” job, but it appears that jobs 
 must perform some actual Bacula task. So is my only alternative to put 
 the “before” directive in the first job and the “after” directive in the 
 last job?

No, not necessarily. If I understand you correctly, you'd use two 
admin jobs: One scheduled a minute before the first backup job, the 
other a minute after the last backup. Those admin jobs can execute 
commands like regular jobs - that's their main purpose - and if you 
set the priority numerically lower and higher, respectively, than the 
backup jobs, the order should be correct.

Arno

  
 
 In other words, these scripts aren’t specific to a particular job so I 
 want to disassociate them from the individual jobs if possible.
 
 
 
 
 --
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Just upgraded to 3.0.0

2009-07-03 Thread Dan Langille
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I know you've been laying awake at night wondering about this.  But it
has finally happened.  I'm running 3.0.0.

And, FWIW, I have submitted patches for the FreeBSD 3.0.1 port... They
should be committed soon.

- --
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference: http://www.pgcon.org/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpOYncACgkQCgsXFM/7nTxH2QCgtXRUPnqC5zZPOCYJUIaAtRIA
ZpUAn1x6vninZMDoxA3mZ9RSTnVJY2UF
=ENjZ
-END PGP SIGNATURE-

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] runbeforejob/runafterjob

2009-07-03 Thread ginzzer
So, can we run our own script (like script written in bash) before/after
the backup job started/finished?

on 3/7/2009 14:51:13, Arno Lehmann a...@its-lehmann.de wrote:
Re: [Bacula-users] runbeforejob/runafterjob
 Hi,
 
 03.07.2009 20:49, Jeff Shanholtz wrote:
  
  
  I’d like to run a script before all my scheduled jobs start and another 
  one after they all end, as opposed to before/after a single job runs. 
  I’d like the “after” script to run immediately after the jobs are done, 
  otherwise I’d just use the Windows task scheduler. I figured I’d be able 
  to create a “before” job and an “after” job, but it appears that jobs 
  must perform some actual Bacula task. So is my only alternative to put 
  the “before” directive in the first job and the “after” directive in the 
  last job?
 
 No, not necessarily. If I understand you correctly, you'd use two 
 admin jobs: One scheduled a minute before the first backup job, the 
 other a minute after the last backup. Those admin jobs can execute 
 commands like regular jobs - that's their main purpose - and if you 
 set the priority numerically lower and higher, respectively, than the 
 backup jobs, the order should be correct.
 
 Arno
 
   
  
  In other words, these scripts aren’t specific to a particular job so I 
  want to disassociate them from the individual jobs if possible.
  
  
  
  
  --
  
  
  
  
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 -- 
 Arno Lehmann
 IT-Service Lehmann
 Sandstr. 6, 49080 Osnabrück
 www.its-lehmann.de
 
 --
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


-- 
ginzzer ginz...@gmail.com 


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] runbeforejob/runafterjob

2009-07-03 Thread Dan Langille
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Shanholtz wrote:
 I’d like to run a script before all my scheduled jobs start and another
 one after they all end, as opposed to before/after a single job runs.
 I’d like the “after” script to run immediately after the jobs are done,
 otherwise I’d just use the Windows task scheduler. I figured I’d be able
 to create a “before” job and an “after” job, but it appears that jobs
 must perform some actual Bacula task. So is my only alternative to put
 the “before” directive in the first job and the “after” directive in the
 last job?
 
  
 
 In other words, these scripts aren’t specific to a particular job so I
 want to disassociate them from the individual jobs if possible.

Create a new backup job.  Give it type = admin.  Nothing will be backed
up.  It could also trigger purging of jobs.

Run your scripts there.  Schedule it, via time, or priority to run
before the other jobs.


- --
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference: http://www.pgcon.org/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpOakMACgkQCgsXFM/7nTyo6ACfaeAHJtecs166gcaRvxDogJ1g
j7cAoISzxNEv5yPd1batRRpIsMzga1K9
=7eDe
-END PGP SIGNATURE-

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] backup catalog fail?

2009-07-03 Thread John Drescher
2009/7/3 Reynier Perez Mira rper...@uci.cu:
 ginzzer wrote:

 I check that, no /var/bacula directory. But I also check
 make_catalog_backup, seems that it will produced a sql naming with the
 database instead of bacula.sql, I change the corresponding option in the
 configuration file and it seems work fine now. So am I doing it right?

 on 2/7/2009 5:20:03, Kevin Keane subscript...@kkeane.com wrote:
 Re: [Bacula-users] backup catalog fail?



 Hi every:
 I have a question here. I need to backup Bacula DB (PostgreSQL) too. My Job
 for do that is as follow:

 Job {
  Name = BackupCatalog
  JobDefs = DefaultJob
  Level = Full
  FileSet=Catalog
  Schedule = WeeklyCycleAfterBackup
  RunBeforeJob = /etc/bacula/make_catalog_backup bacula_db bacula_user
 bacula_pass 10.128.50.3
  RunAfterJob  = /etc/bacula/delete_catalog_backup
  Write Bootstrap = /var/bacula/working/BackupCatalog.bsr
  Priority = 11                   # run after main backup
 }

 This create a file called bacula.sql in /var/bacula/working. Now I want to
 backup this file to my Storage (File). How I do that? I mean wich is the
 correct configuration? I need to create another Job?


Add Storage=File to the Job Definition. Assuming that your file device
is named File

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] runbeforejob/runafterjob

2009-07-03 Thread Jeff Shanholtz
Very cool. I read about the admin type but actually misunderstood the
purpose (I thought it necessarily had to perform some type of administrative
bacula task). I'll give it a try!

-Original Message-
From: Arno Lehmann [mailto:a...@its-lehmann.de] 
Sent: Friday, July 03, 2009 12:51 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] runbeforejob/runafterjob

Hi,

03.07.2009 20:49, Jeff Shanholtz wrote:
 
 
 I’d like to run a script before all my scheduled jobs start and another 
 one after they all end, as opposed to before/after a single job runs. 
 I’d like the “after” script to run immediately after the jobs are done, 
 otherwise I’d just use the Windows task scheduler. I figured I’d be able 
 to create a “before” job and an “after” job, but it appears that jobs 
 must perform some actual Bacula task. So is my only alternative to put 
 the “before” directive in the first job and the “after” directive in the 
 last job?

No, not necessarily. If I understand you correctly, you'd use two 
admin jobs: One scheduled a minute before the first backup job, the 
other a minute after the last backup. Those admin jobs can execute 
commands like regular jobs - that's their main purpose - and if you 
set the priority numerically lower and higher, respectively, than the 
backup jobs, the order should be correct.

Arno

  
 
 In other words, these scripts aren’t specific to a particular job so I 
 want to disassociate them from the individual jobs if possible.
 
 
 
 


--
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users