Hi,

Am Dienstag, 24. Juli 2012, 12:12:49 schrieb Kern Sibbald:
> On 07/24/2012 08:36 AM, Bastian Friedrich wrote:
> > 
> > Not for the first time it's a problem for us (and I mean: for us. This is
> > not a rant, or a wish you should change anything) that its not easily
> > possible to run any commands prior to a _restore_ job.
> 
> I am a bit surprised about this last paragraph (hard to run commands
> before a restore job. While I have never tried
> running a RunScript in a restore job, I would be really surprised if it
> does not work.

I was a little inconcise here. Obviously, it is well possible to run any 
commands before starting a restore, and doing that via a RunScript in Bacula 
might (probably will, as you say) work.

However, that program/runscript does not have access to numerous central 
pieces of information that would control the runscript's behavior. We were 
discussing restores to a raw device in this thread; the runscipt should write 
zeros to the device prior to the restore. To do so, the runscript would need 
to know that a raw device (or, at least, some file called e.g. /dev/sdXX, 
/dev/mapper/VG-LV, or whatever) is to be restored, possibly additonal 
information about stuff such as backup level or timestamp would be 
interesting.

Secondly, the configuration of such a run script would result in the 
modification of the "current" restore behavior, not in the behavior of /all/ 
restores for a certain file (or, at least, fileset).

Bacula's plugin interface (and, especially, as always, the bpipe plugin) offer 
solutions for most of these problems, though; additionally, I'm not really 
sure about the requirements of a more comprehensive solution for these 
problems. No need to regard the above as a feature request :)

Thx
   Bastian

-- 
Collax GmbH . Basler Str. 115a . 79115 Freiburg . Germany
p: +49 (0) 89-990 157-28        www.collax.com

Geschäftsführer: Bernd Bönte, Boris Nalbach
AG München HRB 173695. Ust.-IdNr: DE270819312


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to