From: Eric Bollengier Date: Fri, 12 Jan 2007 21:50:40 +0000 (+0000) Subject: ebl if use bconsole.pl, discard scp:// file:// X-Git-Tag: Release-2.0.1~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f0cef4b7b786179935776b71d4ccbc105731b83;p=bacula%2Fbacula ebl if use bconsole.pl, discard scp:// file:// git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3988 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/brestore/brestore-fr.glade b/gui/brestore/brestore-fr.glade index 9b12d6a7f1..7ed8a7f527 100644 --- a/gui/brestore/brestore-fr.glade +++ b/gui/brestore/brestore-fr.glade @@ -1874,8 +1874,7 @@ Ou, si le director est sur une autre machine : <b> scp://bacula@hostdir:/path/to/bsr </b> Ou si le director fonctionne avec le connecteur http bweb -<b> file://var/tmp</b> -Et vous devez positionner bconsole sur +vous devez laisser ce champs vide, et vous devez positionner bconsole sur <b> http://user:pass@director/cgi-bin/bweb/bconsole.pl</b> False True diff --git a/gui/brestore/brestore.glade b/gui/brestore/brestore.glade index 3f8c00ac69..b32a8e693e 100644 --- a/gui/brestore/brestore.glade +++ b/gui/brestore/brestore.glade @@ -1871,15 +1871,14 @@ Example : DBI:Pg:database=bacula;host=127.0.0.1;port=5432 To launch a restore job, bacula need a BSR file. This file must be <b>local</b> to director, so -if director is local, put something like : +if the director is local, put something like : <b> file://path/to/bacula/work/dir</b> or if director is on other host <b> scp://bacula@hostdir:/path/to/bsr </b> -or if director works with the bweb http connector -<b> file://var/tmp</b> -and set bconsole to -<b> http://user:pass@director/cgi-bin/bweb/brestore.pl</b> +or if the director works with the bweb http connector +keep it empty and set bconsole to +<b> http://user:pass@director/cgi-bin/bweb/bconsole.pl</b> False True GTK_JUSTIFY_LEFT diff --git a/gui/brestore/brestore.pl b/gui/brestore/brestore.pl index 72ed665299..66319e15cb 100755 --- a/gui/brestore/brestore.pl +++ b/gui/brestore/brestore.pl @@ -424,6 +424,8 @@ sub show_job my $ret = $self->{pref}->go_bweb("?action=dsp_cur_job;jobid=$jobid;client=$client", "view job status"); + $self->on_cancel_resto_clicked(); + if ($ret == -1) { my $widget = Gtk2::MessageDialog->new(undef, 'modal', 'info', 'close', "Your job have been submited to bacula. @@ -431,8 +433,6 @@ To follow it, you must use bconsole (or install/configure bweb)"); $widget->run; $widget->destroy(); } - - $self->on_cancel_resto_clicked(); } sub on_cancel_resto_clicked @@ -541,6 +541,10 @@ sub copy_bsr print "$src => $dst\n" if ($debug); + if (!$dst) { + return $src; + } + my $ret=0 ; my $err ; my $dstfile;