Hello Ulrich,

Le Thursday 23 April 2009 15:57:03 Ulrich Leodolter, vous avez écrit :
> Hi,
>
> I've made a small change to brestore.pl to exclude Copy job ids,
> this is the default in bconsole (afaik)

Bconsole and Brestore are working in a different way (graphical interface 
permits to do more things than text one)

> Job selection is restricted to Type='B', but right click on
> file list item "See all versions" shows Copy job ids.
> (last line of code below is new)

Seeing all version permits to choose the right one... 

I will fix brestore in this way, but i will add a new menu option to bresto 
(the new web version of brestore) to let user choose if they want to list 
copies.

Bye

>
> sub get_all_file_versions
> {
>     my ($self,$pathid,$fileid,$client,$see_all)=...@_;
>
>     defined $see_all or $see_all=0;
>
>     my @versions;
>     my $query;
>     $query =
> "SELECT File.JobId, File.FileIndex, File.Lstat,
>         File.Md5, Media.VolumeName, Media.InChanger
>  FROM File, Job, Client, JobMedia, Media
>  WHERE File.FilenameId = $fileid
>    AND File.PathId=$pathid
>    AND File.JobId = Job.JobId
>    AND Job.ClientId = Client.ClientId
>    AND Job.JobId = JobMedia.JobId
>    AND Job.Type IN ('B')
>    ...
>
>
> BR
> Ulrich



------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to