On Tue, Mar 10, 2009 at 11:34:39AM -0500, Blake Dunlap wrote:
> > On Mon, Mar 09, 2009 at 07:17:23PM -0400, Dan Langille wrote:
> > > Kern Sibbald wrote:
> > > >On Monday 09 March 2009 18:39:49 Graham Keeling wrote:
> > > >>On Mon, Mar 09, 2009 at 05:56:36PM +0100, Kern Sibbald wrote:
> > > >>>On Monday 09 March 2009 17:40:15 Graham Keeling wrote:
> > > >>>>Hello,
> > > >>>>
> > > >>>>I have come across some problems involving a single client, a single
> > > >>>>fileset, and more than one job definition.
> > > >>>>
> > > >>>>My setup...
> > > >>>>
> > > >>>>Client: myclient
> > > >>>>FileSet: myfileset
> > > >>>>
> > > >>>>Job: myjob1
> > > >>>>Job: myjob2
> > > >>>Bacula does not support this option.
> > > >>I don't believe that this is made very clear in the documentation.
> > > >
> > > >Yes, that is very likely the case, but with a program as complex as
> > Bacula
> > > >and already 800 pages of free documentation ...
> > > >
> > > >>It does appear to be *trying* to support it, as some parts of the code
> > > >>that
> > > >>figure out dependent jobs take note of the job name, though others do
> > not.
> > > >
> > > >I wouldn't exactly say that it is trying to support it, but rather that
> > > >since the program is so complicated, and I try not to restrict it too
> > > >much, there are places where it can seem to work, but it is just not
> > > >designed to do so (at least at the moment), and thus it will not work.
> > It
> > > >isn't that I don't want it to work, but there is only so much that the
> > > >developers can do in the time we have.
> > > >
> > > >Unfortunate what you are trying to do is simply not possible in the way
> > > >you are trying to do it with the current code.
> > >
> > > What the original poster could do to achieve the same result:
> > >
> > >   Have two FileSets with identical content but different names.
> > >
> > > I am pretty sure the goal is to manage just one FileSet.  I suspect you
> > > can do this with the existing Bacula directives.
> >
> > This is what I'm going to have to do for now - have duplicate filesets
> > with
> > different names.
> 
> This is what I do. It's not the best solution but it works until Bacula can 
> differentiate Jobs on restore.

That's not quite the whole story - it doesn't differentiate them in at least
the following places I've found...

dird/ua_restore.c: select_backup_before_date()
        This uses SQL commands defined in cats/sql_cmds.c that look at the
        ClientId, the FileSet and the StartTime.
dird/backup.c: send_accurate_current_files()
dird/vbackup.c: do_vbackup()
        These both use cats/sql_get.c: db_accurate_get_jobids(),
        which checks the ClientId, the FileSet and the StartTime.



------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to