On Thu, Feb 26, 2009 at 02:23:04PM +0000, Graham Keeling wrote: > I've now looked at the bacula code a bit, and what I think it does is this > (bear in mind that I'm not one of the proper bacula development guys, so I > might be talking utter rubbish here): > > When you tell it to restore something, it creates a single .bsr file. > Though the director knows the Storage that has each volume, the .bsr file > does not contain that information. > The director then takes that .bsr file and sends a "run job=" command back > through the bconsole interface, like this (with the %s bits filled in - > src/dird/ua_restore.c): > > "run job=\"%s\" client=\"%s\" restoreclient=\"%s\" storage=\"%s\"" > " bootstrap=\"%s\" files=%u catalog=\"%s\"" > > As you can see, the Storage is set outside of the bootstrap file, and I think > you can only specify one of them. So, that single Storage gets told to restore > from all of the volumes, even if the director knows that some of the volumes > shouldn't be there. > I suppose that it's possible that if there was a volume in that place with the > correct label, it would happily restore from it and give you odd files. > > One kludgy solution that I may have a go at trying is to make the director > write out a separate .bsr file containing the correct set of volumes that it > needs for each Storage, and then doing multiple "run job=" commands. This > will set off multiple restores and you'd end up with multiple confirmation > messages. > It might all go horribly wrong if you're using plugins, mind.
...and another thing: I just noticed that the Virtual Backup / Consolidation stuff seems to work in a similar fashion. Unless I'm missing something, it looks like it just creates a single .bsr file and sends it off to a single Storage. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users