Dmsg1(800, "JobId to restore=%d\n", jcr->RestoreJobId);
if (jcr->RestoreJobId == 0) {
if (ua->api) ua->signal(BNET_RUN_CMD);
- ua->send_msg(_("Run Restore job\n"
- "JobName: %s\n"
- "Bootstrap: %s\n"),
- job->name(),
- NPRT(jcr->RestoreBootstrap));
-
/* RegexWhere is take before RestoreWhere */
if (jcr->RegexWhere || (job->RegexWhere && !jcr->where)) {
- ua->send_msg(_("RegexWhere: %s\n"),
- jcr->RegexWhere?jcr->RegexWhere:job->RegexWhere);
- } else {
- ua->send_msg(_("Where: %s\n"),
- jcr->where?jcr->where:NPRT(job->RestoreWhere));
- }
+ ua->send_msg(_("Run Restore job\n"
+ "JobName: f%s\n"
+ "Bootstrap: %s\n"
+ "RegexWhere: %s\n"
+ "Replace: %s\n"
+ "FileSet: %s\n"
+ "Backup Client: %s\n"
+ "Restore Client: %s\n"
+ "Storage: %s\n"
+ "When: %s\n"
+ "Catalog: %s\n"
+ "Priority: %d\n"),
+ job->name(),
+ NPRT(jcr->RestoreBootstrap),
+ jcr->RegexWhere?jcr->RegexWhere:job->RegexWhere,
+ replace,
+ jcr->fileset->name(),
+ client_name,
+ jcr->client->name(),
+ jcr->rstore->name(),
+ bstrutime(dt, sizeof(dt), jcr->sched_time),
+ jcr->catalog->name(),
+ jcr->JobPriority);
- ua->send_msg(_("Replace: %s\n"
+ } else {
+ ua->send_msg(_("Run Restore job\n"
+ "JobName: %s\n"
+ "Bootstrap: %s\n"
+ "Where: %s\n"
+ "Replace: %s\n"
"FileSet: %s\n"
"Backup Client: %s\n"
"Restore Client: %s\n"
"When: %s\n"
"Catalog: %s\n"
"Priority: %d\n"),
- replace,
- jcr->fileset->name(),
- client_name,
- jcr->client->name(),
- jcr->rstore->name(),
- bstrutime(dt, sizeof(dt), jcr->sched_time),
- jcr->catalog->name(),
- jcr->JobPriority);
+ job->name(),
+ NPRT(jcr->RestoreBootstrap),
+ jcr->where?jcr->where:NPRT(job->RestoreWhere),
+ replace,
+ jcr->fileset->name(),
+ client_name,
+ jcr->client->name(),
+ jcr->rstore->name(),
+ bstrutime(dt, sizeof(dt), jcr->sched_time),
+ jcr->catalog->name(),
+ jcr->JobPriority);
+ }
+
} else {
if (ua->api) ua->signal(BNET_RUN_CMD);
ua->send_msg(_("Run Restore job\n"
/*
* Run Command Dialog class
*
+ * This is called when a Run Command signal is received from the
+ * Director. We parse the Director's output and throw up a
+ * dialog box.
+ *
* Kern Sibbald, March MMVII
*
* $Id: $
{
QString item, val;
QStringList items;
- QRegExp rx("^.*:\\s*(\\S.*$)");
+ QRegExp rx("^.*:\\s*(\\S.*$)"); /* Regex to get value */
m_console->read();
item = m_console->msg();
bootstrap->setText(val);
continue;
}
- if (item.startsWith("Client:")) {
+ if (item.startsWith("Backup Client:")) {
clientCombo->addItem(val);
continue;
}