Hello Bastian, On 08/29/2011 02:44 PM, Bastian Friedrich wrote: > Hi, > > we are using a fileset that should include data that is created (or provided) > by a (client side) run script. Concretely, a virtual machine (VM) is backed > up; a run script shall create a snapshot of that machine, and the snapshot > file should be backed up (it's a little more complicated, but let's leave it > that way for now). > > Unfortunately, bacula currently _first_ evaluates the file set, and runs the > file listing process ("\|script" syntax), and _then_ runs the "client before > jobs" commands. > > With the attached patch (vs. a 5.0.3 that has another patch applied that I > just sent to bacula-devel to modify another call order), this behavior is > modified; _first_ the "before job" is executed, then the file list is > received. > > At the first sight, my installation continues to run fine with the patch > applied; however (and again), I have not tested all possible scenarios, but > only ones that we use internally. > > As a side note: the init script (which may make the job fail) will abort > further communication; receiving the file list is no longer required with this > patch. I'd regard that as an advantage. > > 1) Would you think that this reordering should work fine in all/other > scenarios?
I worked on this subject years ago when implementing RunScript, and the conclusion was that this is a very tricky area where each small modification breaks something else for many users. For example, in that case, if the script takes a long time to run, the SD will cancel the registration ticket and will cancel the backup... And some users are dumping big database during hours before running their job. For the first patch with the level command, it might be possible to apply it, and it makes a lot of sens. But we need to discuss it with Kern first. Bye -- Need professional help and support for Bacula ? Visit http://www.baculasystems.com ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel