Hello,

On 18.10.2005 09:58, Marek Simon wrote:

I backup oracle with by way:
shut down the server, copy dbf files and start up the server
both commands are sent by bacula through "Client Run Before Job" and "Client Run After Job" parameters. but when bacula fails to do backup (full storage etc), the after command don't start and the server remains down. Can I set bacula to run the after command (or any command), even if backup fails?

I don't think so. That would also be a problem if connectivity between the DIR and the FD was lost... In your situation, I'd do things differently.

Either, use a backup method which doesn't require tha server to be shut down. That should be possible.

You could also shutdown the server, copy the data files to another, local, location, and restart the server. Then back up the copy. That would also reduce service downtime, but it would require additional space.

Or you use a process that watches for the backup to take place. In your client run before script, start another script into the background, that could do the following:

Wait a while,
query the DIR if the backup job still runs,
query the FD if the backup job still runs,
check a reasonable timeout,
if any of the above tests fail,
   if the job is not finished,
      send a cancel to the DIR,
      stop and restart the FD,
      send a message to the operator,
   otherwise the job has terminated ok
   restart your database
   exit
continue

This would need some scripting or serious programming, but you could do most checks either through bconsole or start your own programm with the tray monitor as a template.

Marek

Arno

--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to