if (jcr->run_next_pool_override) {
pm_strcpy(jcr->next_pool_source, _("Run NextPool override"));
pm_strcpy(jcr->pool_source, _("Run NextPool override"));
- source = _("Storage from Run NextPool override");
+ source = _("Run NextPool override");
} else if (jcr->job->next_pool) {
/* Use Job Next Pool */
jcr->next_pool = jcr->job->next_pool;
pm_strcpy(jcr->next_pool_source, _("Job's NextPool resource"));
pm_strcpy(jcr->pool_source, _("Job's NextPool resource"));
- source = _("Storage from Job's NextPool resource");
+ source = _("Job's NextPool resource");
} else {
/* Default to original pool->NextPool */
jcr->next_pool = opool->NextPool;
}
pm_strcpy(jcr->next_pool_source, _("Job Pool's NextPool resource"));
pm_strcpy(jcr->pool_source, _("Job Pool's NextPool resource"));
- source = _("Storage from Pool's NextPool resource");
+ source = _("Pool's NextPool resource");
}
/*
pm_strcpy(jcr->client_name, jcr->client->name());
jcr->pool = job->pool;
pm_strcpy(jcr->pool_source, _("Job resource"));
- jcr->next_pool = job->pool->NextPool;
- pm_strcpy(jcr->next_pool_source, _("Job's NextPool resource"));
+ if (job->next_pool) {
+ /* Use Job's Next Pool */
+ jcr->next_pool = job->next_pool;
+ pm_strcpy(jcr->next_pool_source, _("Job's NextPool resource"));
+ } else {
+ /* Default to original pool->NextPool */
+ jcr->next_pool = job->pool->NextPool;
+ pm_strcpy(jcr->next_pool_source, _("Job Pool's NextPool resource"));
+ }
jcr->full_pool = job->full_pool;
jcr->inc_pool = job->inc_pool;
jcr->diff_pool = job->diff_pool;
static bool get_next_pool(UAContext *ua, run_ctx &rc)
{
if (rc.next_pool_name) {
- Dmsg1(100, "Have next pool override=%s\n", rc.next_pool_name);
+ Dmsg1(100, "Have next pool=%s\n", rc.next_pool_name);
rc.next_pool = GetPoolResWithName(rc.next_pool_name);
if (!rc.next_pool) {
if (*rc.next_pool_name != 0) {
if (jcr->is_JobType(JT_MIGRATE) || jcr->is_JobType(JT_COPY) ||
(jcr->is_JobType(JT_BACKUP) && jcr->is_JobLevel(L_VIRTUAL_FULL))) {
if (!set_mac_wstorage(ua, jcr, rc.pool, rc.next_pool,
- _("Storage from NextPool override"))) {
+ jcr->next_pool_source)) {
return false;
}
}