]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: Fix bresto full directory restore
authorDavid Weber <wb@munzinger.de>
Wed, 16 Nov 2011 13:36:58 +0000 (14:36 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:13 +0000 (14:50 +0200)
We need the jobid if we want to restore a full directory

gui/bweb/cgi/bresto.pl

index 81d5b8d2d7144d3ba1e97facdafc55d8c445a767..f982692c806e8d90adaf2700ae02758249655315 100755 (executable)
@@ -613,11 +613,13 @@ sub fill_table_for_restore
                            map { split(/,/) } CGI::param('dirid')) ;
     my $findex = join(',', grep { /^\d+$/ } 
                              map { split(/,|\//) } CGI::param('findex')) ;
+    my $jobid = join(',', grep { /^\d+$/ }
+                           map { split(/,/) } CGI::param('jobid')) ;
     my $inclause = join(',', @jobid);
 
     my $b = $bvfs->get_bconsole();
     my $ret = $b->send_one_cmd(".bvfs_restore path=b2$$ fileid=$fileid " .
-                               "dirid=$dirid hardlink=$findex jobid=1" 
+                               "dirid=$dirid hardlink=$findex jobid=$jobid"
                                . $bvfs->{bvfs_user});
     if (grep (/OK/, @$ret)) {
         return "b2$$";