/*
Bacula® - The Network Backup Solution
- Copyright (C) 2001-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2001-2008 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
jcr->verify_job = rc.verify_job;
jcr->previous_job = rc.previous_job;
jcr->pool = rc.pool;
+ if (jcr->pool != jcr->job->pool) {
+ pm_strcpy(jcr->pool_source, _("User input"));
+ }
set_rwstorage(jcr, rc.store);
jcr->client = rc.client;
pm_strcpy(jcr->client_name, rc.client->name());
jcr->ExpectedFiles = rc.files;
if (rc.catalog) {
jcr->catalog = rc.catalog;
+ pm_strcpy(jcr->catalog_source, _("User input"));
}
if (rc.where) {
if (jcr->where) {
/* If pool changed, update migration write storage */
- if (jcr->JobType == JT_MIGRATE) {
+ if (jcr->JobType == JT_MIGRATE || jcr->JobType == JT_COPY) {
if (!set_migration_wstorage(jcr, rc.pool)) {
goto bail_out;
}
add_prompt(ua, _("When")); /* 5 */
add_prompt(ua, _("Priority")); /* 6 */
if (jcr->JobType == JT_BACKUP ||
+ jcr->JobType == JT_COPY ||
jcr->JobType == JT_MIGRATE ||
jcr->JobType == JT_VERIFY) {
add_prompt(ua, _("Pool")); /* 7 */
case 7:
/* Pool or Bootstrap depending on JobType */
if (jcr->JobType == JT_BACKUP ||
+ jcr->JobType == JT_COPY ||
jcr->JobType == JT_MIGRATE ||
jcr->JobType == JT_VERIFY) { /* Pool */
rc.pool = select_pool_resource(ua);
jcr->JobPriority);
}
break;
+ case JT_COPY:
case JT_MIGRATE:
+ char *prt_type;
+ if (jcr->JobType == JT_COPY) {
+ prt_type = _("Run Copy job\n");
+ } else {
+ prt_type = _("Run Migration job\n");
+ }
jcr->JobLevel = L_FULL; /* default level */
if (ua->api) ua->signal(BNET_RUN_CMD);
- ua->send_msg(_("Run Migration job\n"
+ ua->send_msg("%s"
"JobName: %s\n"
"Bootstrap: %s\n"
"Client: %s\n"
"JobId: %s\n"
"When: %s\n"
"Catalog: %s\n"
- "Priority: %d\n"),
+ "Priority: %d\n",
+ prt_type,
job->name(),
NPRT(jcr->RestoreBootstrap),
jcr->client->name(),