mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Show more details in restore job menu
This commit is contained in:
@@ -638,3 +638,6 @@ restore_eclients=No members of Bacula group backup found!
|
||||
restore_eall1=The <b>All Clients in Backup</b> option must be selected for <b>Restore to client or group</b> when doing a Bacula group job restore
|
||||
restore_eall2=The <b>All Clients in Backup</b> option can only be selected for <b>Restore to client or group</b> when doing a Bacula group job restore
|
||||
restore_enofiles=None of the selected files are in the backup
|
||||
restore_level_F=Full
|
||||
restore_level_D=Differential
|
||||
restore_level_I=Incremental
|
||||
|
||||
@@ -13,18 +13,19 @@ print &ui_table_start($text{'restore_header'}, undef, 2);
|
||||
|
||||
# Old job to restore
|
||||
$dbh = &connect_to_database();
|
||||
$cmd = $dbh->prepare("select JobId,Name,SchedTime from Job where Name not like 'Restore%' order by SchedTime desc") ||
|
||||
$cmd = $dbh->prepare("select JobId,Name,SchedTime,Level from Job where Name not like 'Restore%' order by SchedTime desc") ||
|
||||
&error("prepare failed : ",$dbh->errstr);
|
||||
$cmd->execute();
|
||||
while(my ($id, $name, $when) = $cmd->fetchrow()) {
|
||||
while(my ($id, $name, $when, $level) = $cmd->fetchrow()) {
|
||||
$level = $text{'restore_level_'.$level} || $level;
|
||||
($j, $c) = &is_oc_object($name);
|
||||
if (!$j) {
|
||||
# Normal backup
|
||||
push(@opts, [ $id, "$name ($when)" ]);
|
||||
push(@opts, [ $id, "$id - $name ($when) - $level" ]);
|
||||
}
|
||||
elsif ($j && $c) {
|
||||
# Backup of one node
|
||||
push(@opts, [ $id, "$j on $c ($when)" ]);
|
||||
push(@opts, [ $id, "$id - $j on $c ($when) - $level" ]);
|
||||
|
||||
# Save the job ID to a list of those for this particular node
|
||||
# group backup
|
||||
|
||||
Reference in New Issue
Block a user