]> git.sur5r.net Git - bacula/bacula/commitdiff
Add list_backup, list_restore functions
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 13 Nov 2009 13:27:18 +0000 (14:27 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 13 Nov 2009 13:27:18 +0000 (14:27 +0100)
gui/bweb/lib/Bconsole.pm

index 6f8d2ffa11c2f0cefda7f4549f714ea27de9f87e..91bd06567e3903e3959b5e45460c43d53fd40772 100644 (file)
@@ -338,6 +338,18 @@ sub get_fileset
     return $ret;
 }
 
+sub list_backup
+{
+    my ($self) = @_;
+    return sort split(/\r?\n/, $self->send_cmd(".jobs type=B"));
+}
+
+sub list_restore
+{
+    my ($self) = @_;
+    return sort split(/\r?\n/, $self->send_cmd(".jobs type=R"));
+}
+
 sub list_job
 {
     my ($self) = @_;